Bug 1205179: [mp4] Don't reject 7 bytes long avcC atom. r=gerald

An AVC3 stream will typically use 7 bytes avcC (due to have 0 SPS/PPS)
This commit is contained in:
Jean-Yves Avenard 2015-09-16 16:33:20 +10:00
parent 5aa3109cd9
commit 754aca9372

View File

@ -1732,7 +1732,7 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
case FOURCC('a', 'v', 'c', 'C'):
{
if (chunk_data_size <= 7) {
if (chunk_data_size < 7) {
ALOGE("short avcC chunk (%d bytes)", chunk_data_size);
return ERROR_MALFORMED;
}