summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2014-08-22 21:29:02 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-22 21:29:02 +0000
commit96db098bdb8cf98dfd7255cf42d78d584a7780ff (patch)
treecba1fe5946194ba86fb8b69c3076327a4ac4f358 /media
parent119c78b8c7709fe23bfcb5129423c9a77a30ee56 (diff)
parent687ee2d4e0fcddc4af0b6ad1096ea330c23a85c4 (diff)
downloadframeworks_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.cpp5
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());