diff options
author | Wei Jia <wjia@google.com> | 2014-12-08 19:13:57 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-08 19:13:57 +0000 |
commit | 5185c95673f7c6facd6d57fdc9fc53f52e44eed8 (patch) | |
tree | fe54124c4b16e941d3632ebe3b72899ff148262a /media/libstagefright/mpeg2ts | |
parent | 900f6535af232298e4a77477907a40f68e8dc61b (diff) | |
parent | 25bad49ce75758b2f68b278f54d7272b1cf4d08c (diff) | |
download | frameworks_av-5185c95673f7c6facd6d57fdc9fc53f52e44eed8.zip frameworks_av-5185c95673f7c6facd6d57fdc9fc53f52e44eed8.tar.gz frameworks_av-5185c95673f7c6facd6d57fdc9fc53f52e44eed8.tar.bz2 |
am 25bad49c: am 852dc963: Merge "avc_util: try to find the first start code prefix 0x000001 even though there is non-zero byte at the beginning of the buffer." into lmp-mr1-dev
* commit '25bad49ce75758b2f68b278f54d7272b1cf4d08c':
avc_util: try to find the first start code prefix 0x000001 even though there is non-zero byte at the beginning of the buffer.
Diffstat (limited to 'media/libstagefright/mpeg2ts')
-rw-r--r-- | media/libstagefright/mpeg2ts/ESQueue.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/media/libstagefright/mpeg2ts/ESQueue.cpp b/media/libstagefright/mpeg2ts/ESQueue.cpp index 6662569..73fe109 100644 --- a/media/libstagefright/mpeg2ts/ESQueue.cpp +++ b/media/libstagefright/mpeg2ts/ESQueue.cpp @@ -343,12 +343,13 @@ status_t ElementaryStreamQueue::appendData( } if (frameLength != size - startOffset) { - ALOGW("got ADTS AAC frame length %zd instead of %zd", + ALOGW("First ADTS AAC frame length is %zd bytes, " + "while the buffer size is %zd bytes.", frameLength, size - startOffset); } data = &ptr[startOffset]; - size = frameLength; + size -= startOffset; #endif break; } |