Fix'ed a typo in ESDS Box
This commit is contained in:
parent
9d9709f38b
commit
b10b1df10c
1 changed files with 9 additions and 9 deletions
18
lib/mp4.cpp
18
lib/mp4.cpp
|
@ -2450,7 +2450,7 @@ namespace MP4 {
|
||||||
|
|
||||||
std::string ESDS::getESHeaderStartCodes(){
|
std::string ESDS::getESHeaderStartCodes(){
|
||||||
std::string result;
|
std::string result;
|
||||||
for (int i = 0; i < getInt8(34) - 1; i++){
|
for (int i = 0; i < getInt8(34); i++){
|
||||||
result += getInt8(35 + i);
|
result += getInt8(35 + i);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
@ -2464,35 +2464,35 @@ namespace MP4 {
|
||||||
}
|
}
|
||||||
|
|
||||||
char ESDS::getSLConfigDescriptorTypeTag(){
|
char ESDS::getSLConfigDescriptorTypeTag(){
|
||||||
return getInt16(35 + getInt8(34));
|
return getInt8(35 + getInt8(34));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ESDS::setSLConfigDescriptorTypeTag(char newVal){
|
void ESDS::setSLConfigDescriptorTypeTag(char newVal){
|
||||||
setInt16(newVal, 35 + getInt8(34));
|
setInt8(newVal, 35 + getInt8(34));
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t ESDS::getSLConfigExtendedDescriptorTypeTag(){
|
uint32_t ESDS::getSLConfigExtendedDescriptorTypeTag(){
|
||||||
return getInt24(37 + getInt8(34));
|
return getInt24(36 + getInt8(34));
|
||||||
}
|
}
|
||||||
//3 bytes
|
//3 bytes
|
||||||
void ESDS::setSLConfigExtendedDescriptorTypeTag(uint32_t newVal){
|
void ESDS::setSLConfigExtendedDescriptorTypeTag(uint32_t newVal){
|
||||||
setInt24(newVal, 37 + getInt8(34));
|
setInt24(newVal, 36 + getInt8(34));
|
||||||
}
|
}
|
||||||
//3 bytes
|
//3 bytes
|
||||||
char ESDS::getSLDescriptorTypeLength(){
|
char ESDS::getSLDescriptorTypeLength(){
|
||||||
return getInt8(40 + getInt8(34));
|
return getInt8(39 + getInt8(34));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ESDS::setSLDescriptorTypeLength(char newVal){
|
void ESDS::setSLDescriptorTypeLength(char newVal){
|
||||||
setInt8(newVal, 40 + getInt8(34));
|
setInt8(newVal, 39 + getInt8(34));
|
||||||
}
|
}
|
||||||
|
|
||||||
char ESDS::getSLValue(){
|
char ESDS::getSLValue(){
|
||||||
return getInt8(41 + getInt8(34));
|
return getInt8(40 + getInt8(34));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ESDS::setSLValue(char newVal){
|
void ESDS::setSLValue(char newVal){
|
||||||
setInt8(newVal, 41 + getInt8(34));
|
setInt8(newVal, 40 + getInt8(34));
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ESDS::toPrettyString(uint32_t indent){
|
std::string ESDS::toPrettyString(uint32_t indent){
|
||||||
|
|
Loading…
Add table
Reference in a new issue