From 754aca937279eff9768919a8836a6305fb3e11dc Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Wed, 16 Sep 2015 16:33:20 +1000 Subject: [PATCH] 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) --- .../frameworks/av/media/libstagefright/MPEG4Extractor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media/libstagefright/frameworks/av/media/libstagefright/MPEG4Extractor.cpp b/media/libstagefright/frameworks/av/media/libstagefright/MPEG4Extractor.cpp index 088b29defa0..6584870eba4 100644 --- a/media/libstagefright/frameworks/av/media/libstagefright/MPEG4Extractor.cpp +++ b/media/libstagefright/frameworks/av/media/libstagefright/MPEG4Extractor.cpp @@ -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; }