diff options
author | Keith Mok <kmok@cyngn.com> | 2015-11-27 19:01:45 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2015-11-30 15:58:07 -0800 |
commit | 43e8dfae5c12f7ffdd50cfdcb7d8007b1b28d898 (patch) | |
tree | 4f814a2d4e469ea4ee0cb77302b9023377128cbb /media/libstagefright/MPEG4Extractor.cpp | |
parent | d69ffb9cf12a4664584e0b3eea30e23b95db4ad0 (diff) | |
download | frameworks_av-43e8dfae5c12f7ffdd50cfdcb7d8007b1b28d898.zip frameworks_av-43e8dfae5c12f7ffdd50cfdcb7d8007b1b28d898.tar.gz frameworks_av-43e8dfae5c12f7ffdd50cfdcb7d8007b1b28d898.tar.bz2 |
stagefright: Fix tags in mpeg4 not parsed correctly.
This fixes a bug introduced by commit
440b54cbef4a20caeb18bf6927bc728645f649e2 which skipped
the atoms inside in mpeg4 container without correctly
parsing all of it.
Change-Id: I6152b0a8e0248a39f9c686e748b3ae22457579da
Diffstat (limited to 'media/libstagefright/MPEG4Extractor.cpp')
-rwxr-xr-x | media/libstagefright/MPEG4Extractor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/MPEG4Extractor.cpp b/media/libstagefright/MPEG4Extractor.cpp index d0dba73..c928495 100755 --- a/media/libstagefright/MPEG4Extractor.cpp +++ b/media/libstagefright/MPEG4Extractor.cpp @@ -847,7 +847,7 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) { && chunk_type != FOURCC('c', 'o', 'v', 'r') && mPath.size() == 5 && underMetaDataPath(mPath)) { off64_t stop_offset = *offset + chunk_size; - *offset = stop_offset; + *offset = data_offset; while (*offset < stop_offset) { status_t err = parseChunk(offset, depth + 1); if (err != OK) { |