diff options
author | Chong Zhang <chz@google.com> | 2014-08-22 21:01:29 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-22 21:01:30 +0000 |
commit | 89c4ab2f4e4fbccf5c67e2671cf252053dbe5d38 (patch) | |
tree | 5f39ef74f01377966438701da1845f197b1a8272 /media/libstagefright | |
parent | a97e0db6befd47c4b4c96de7657879e76a73d0ec (diff) | |
parent | 80804f4e953d6c5f6ed0c3c8e004c4cce280f5c1 (diff) | |
download | frameworks_av-89c4ab2f4e4fbccf5c67e2671cf252053dbe5d38.zip frameworks_av-89c4ab2f4e4fbccf5c67e2671cf252053dbe5d38.tar.gz frameworks_av-89c4ab2f4e4fbccf5c67e2671cf252053dbe5d38.tar.bz2 |
Merge "print warning if offset != buffer size" into lmp-dev
Diffstat (limited to 'media/libstagefright')
-rw-r--r-- | media/libstagefright/rtsp/AMPEG4ElementaryAssembler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libstagefright/rtsp/AMPEG4ElementaryAssembler.cpp b/media/libstagefright/rtsp/AMPEG4ElementaryAssembler.cpp index 76f8f54..7eb6542 100644 --- a/media/libstagefright/rtsp/AMPEG4ElementaryAssembler.cpp +++ b/media/libstagefright/rtsp/AMPEG4ElementaryAssembler.cpp @@ -358,6 +358,11 @@ ARTPAssembler::AssemblyStatus AMPEG4ElementaryAssembler::addPacket( CopyTimes(accessUnit, buffer); mPackets.push_back(accessUnit); } + + if (offset != buffer->size()) { + ALOGW("potentially malformed packet (offset %d, size %d)", + offset, buffer->size()); + } } queue->erase(queue->begin()); |