commit | ba9af7792dfed6e9b1b216aab91a97e713eec891 | [log] [tgz] |
---|---|---|
author | Wei Jia <wjia@google.com> | Fri Mar 24 14:04:05 2017 -0700 |
committer | Wei Jia <wjia@google.com> | Fri Mar 24 14:36:24 2017 -0700 |
tree | f4e596c6a354f4a6ff095fc05bb9ad6c182fbd6a | |
parent | 107488f4d20f3c4595a78ae33ba2f38bca0a50b9 [diff] |
MPEG4Source: fix fragmented read. Test: passed CTS test DecoderTest#testDecodeFragmented Bug: 36571704 Change-Id: I71ad6aaae473b03483f8405899d3178148597bba
diff --git a/media/libstagefright/MPEG4Extractor.cpp b/media/libstagefright/MPEG4Extractor.cpp index a017737..f2a4d06 100644 --- a/media/libstagefright/MPEG4Extractor.cpp +++ b/media/libstagefright/MPEG4Extractor.cpp
@@ -3914,7 +3914,8 @@ while (true) { if (mDataSource->readAt(*offset, hdr, 8) < 8) { - return ERROR_END_OF_STREAM; + // no more box to the end of file. + break; } chunk_size = ntohl(hdr[0]); chunk_type = ntohl(hdr[1]);