summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/mpeg2ts
diff options
context:
space:
mode:
authorWei Jia <wjia@google.com>2014-12-08 19:13:57 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-08 19:13:57 +0000
commit5185c95673f7c6facd6d57fdc9fc53f52e44eed8 (patch)
treefe54124c4b16e941d3632ebe3b72899ff148262a /media/libstagefright/mpeg2ts
parent900f6535af232298e4a77477907a40f68e8dc61b (diff)
parent25bad49ce75758b2f68b278f54d7272b1cf4d08c (diff)
downloadframeworks_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.cpp5
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;
}