diff options
author | Chong Zhang <chz@google.com> | 2014-08-22 21:29:02 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-08-22 21:29:02 +0000 |
commit | 96db098bdb8cf98dfd7255cf42d78d584a7780ff (patch) | |
tree | cba1fe5946194ba86fb8b69c3076327a4ac4f358 /media | |
parent | 119c78b8c7709fe23bfcb5129423c9a77a30ee56 (diff) | |
parent | 687ee2d4e0fcddc4af0b6ad1096ea330c23a85c4 (diff) | |
download | frameworks_av-96db098bdb8cf98dfd7255cf42d78d584a7780ff.zip frameworks_av-96db098bdb8cf98dfd7255cf42d78d584a7780ff.tar.gz frameworks_av-96db098bdb8cf98dfd7255cf42d78d584a7780ff.tar.bz2 |
am 687ee2d4: am 89c4ab2f: Merge "print warning if offset != buffer size" into lmp-dev
* commit '687ee2d4e0fcddc4af0b6ad1096ea330c23a85c4':
print warning if offset != buffer size
Diffstat (limited to 'media')
-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()); |