mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1181223
- p2: Handle wrong saio/saiz size instead of assuming it is correct - r=rillian
This commit is contained in:
parent
35a07e897c
commit
007ffc84ce
@ -547,7 +547,12 @@ SampleTable::setSampleAuxiliaryInformationSizeParams(
|
||||
data_offset += mCencInfoCount;
|
||||
}
|
||||
|
||||
CHECK(data_offset == data_end);
|
||||
if (data_offset != data_end) {
|
||||
ALOGW("wrong saiz data size, expected %lu, actual %lu",
|
||||
data_size, data_offset - (data_end - data_size));
|
||||
// Continue, assume extra data is not important.
|
||||
// Parser will skip past the box end.
|
||||
}
|
||||
|
||||
return parseSampleCencInfo();
|
||||
}
|
||||
@ -612,7 +617,12 @@ SampleTable::setSampleAuxiliaryInformationOffsetParams(
|
||||
}
|
||||
}
|
||||
|
||||
CHECK(data_offset == data_end);
|
||||
if (data_offset != data_end) {
|
||||
ALOGW("wrong saio data size, expected %lu, actual %lu",
|
||||
data_size, data_offset - (data_end - data_size));
|
||||
// Continue, assume extra data is not important.
|
||||
// Parser will skip past the box end.
|
||||
}
|
||||
|
||||
return parseSampleCencInfo();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user