From c06402d735feaf1c404604c283f5e5fe692d3634 Mon Sep 17 00:00:00 2001 From: Oswald Auguste de Bruin Date: Mon, 19 Aug 2013 09:32:51 +0200 Subject: [PATCH] MP4lib bug that prevented DTSC2mp4 is now fixed. MP4 conversion now works --- lib/mp4.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/mp4.cpp b/lib/mp4.cpp index 598164cf..0681d335 100644 --- a/lib/mp4.cpp +++ b/lib/mp4.cpp @@ -2464,37 +2464,37 @@ namespace MP4 { } char ESDS::getSLConfigDescriptorTypeTag(){ - return getInt16(34 + getInt8(34)); + return getInt16(35 + getInt8(34)); } void ESDS::setSLConfigDescriptorTypeTag(char newVal){ - setInt16(newVal, 34 + getInt8(34)); + setInt16(newVal, 35 + getInt8(34)); } uint32_t ESDS::getSLConfigExtendedDescriptorTypeTag(){ - return getInt24(36 + getInt8(34)); + return getInt24(37 + getInt8(34)); } //3 bytes void ESDS::setSLConfigExtendedDescriptorTypeTag(uint32_t newVal){ - setInt24(newVal, 36 + getInt8(34)); + setInt24(newVal, 37 + getInt8(34)); } //3 bytes char ESDS::getSLDescriptorTypeLength(){ - return getInt8(39 + getInt8(34)); - } - - void ESDS::setSLDescriptorTypeLength(char newVal){ - setInt8(newVal, 39 + getInt8(34)); - } - - char ESDS::getSLValue(){ return getInt8(40 + getInt8(34)); } - void ESDS::setSLValue(char newVal){ + void ESDS::setSLDescriptorTypeLength(char newVal){ setInt8(newVal, 40 + getInt8(34)); } + char ESDS::getSLValue(){ + return getInt8(41 + getInt8(34)); + } + + void ESDS::setSLValue(char newVal){ + setInt8(newVal, 41 + getInt8(34)); + } + std::string ESDS::toPrettyString(uint32_t indent){ std::stringstream r; r << std::string(indent, ' ') << "[esds] ES Descriptor Box (" << boxedSize() << ")" << std::endl;