diff options
author | Andreas Huber <andih@google.com> | 2011-01-26 15:50:04 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-01-26 15:50:04 -0800 |
commit | 63b38e31aaea5a3e75c7bbe0c9e40e8bdb78ff73 (patch) | |
tree | 8c97fda7e7cee9f33f61a02f478544aca0cb2d86 /media | |
parent | 85433c76066843d20c92c90d64e842e4f14dbac8 (diff) | |
parent | 0f535afd7e177b9a133f3ef4d014042797b225ff (diff) | |
download | frameworks_base-63b38e31aaea5a3e75c7bbe0c9e40e8bdb78ff73.zip frameworks_base-63b38e31aaea5a3e75c7bbe0c9e40e8bdb78ff73.tar.gz frameworks_base-63b38e31aaea5a3e75c7bbe0c9e40e8bdb78ff73.tar.bz2 |
Merge "This particular RTSP server streams MPEG4-LATM audio with extra trailing bytes." into honeycomb
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/rtsp/AMPEG4AudioAssembler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/media/libstagefright/rtsp/AMPEG4AudioAssembler.cpp b/media/libstagefright/rtsp/AMPEG4AudioAssembler.cpp index bbde516..8bfe285 100644 --- a/media/libstagefright/rtsp/AMPEG4AudioAssembler.cpp +++ b/media/libstagefright/rtsp/AMPEG4AudioAssembler.cpp @@ -359,7 +359,10 @@ sp<ABuffer> AMPEG4AudioAssembler::removeLATMFraming(const sp<ABuffer> &buffer) { } } - CHECK_EQ(offset, buffer->size()); + if (offset < buffer->size()) { + LOGI("ignoring %d bytes of trailing data", buffer->size() - offset); + } + CHECK_LE(offset, buffer->size()); return out; } |