Generalized TS PMT generation, fixed various minor problems with MP4 and HTTP.

This commit is contained in:
Thulinma 2015-02-12 14:17:33 +01:00
parent f31552e37a
commit d6fb4baff4
5 changed files with 55 additions and 6 deletions

View file

@ -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) {