Generalized TS PMT generation, fixed various minor problems with MP4 and HTTP.
This commit is contained in:
parent
f31552e37a
commit
d6fb4baff4
5 changed files with 55 additions and 6 deletions
|
@ -2318,7 +2318,12 @@ namespace MP4 {
|
|||
if (no >= getSampleCount()) {
|
||||
return 0;
|
||||
}
|
||||
return getInt32(12 + no * 4);
|
||||
long unsigned int retVal = getInt32(12 + no * 4);
|
||||
if (retVal == 0){
|
||||
return getSampleSize();
|
||||
}else{
|
||||
return retVal;
|
||||
}
|
||||
}
|
||||
|
||||
std::string STSZ::toPrettyString(uint32_t indent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue