summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/codecs/m4v_h263
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-11-10 16:51:58 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2011-11-10 16:51:58 +0000
commiteec2d81676a50338763b86073545a5365d19eee7 (patch)
tree575862af4ce60087607dd536a19ec33168976052 /media/libstagefright/codecs/m4v_h263
parentbb3e9ebcc7fd5823164b54835b56371f317189bb (diff)
parentca957d753496aff94dbb93b547e1c605bbfa064b (diff)
downloadframeworks_av-eec2d81676a50338763b86073545a5365d19eee7.zip
frameworks_av-eec2d81676a50338763b86073545a5365d19eee7.tar.gz
frameworks_av-eec2d81676a50338763b86073545a5365d19eee7.tar.bz2
am b42aea5b: Merge "Don\'t believe the PV decoder\'s lies..." into ics-mr1
* commit 'b42aea5b4c7cc7b2766f80f5ceda94b324d776e5': Don't believe the PV decoder's lies...
Diffstat (limited to 'media/libstagefright/codecs/m4v_h263')
-rw-r--r--media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp b/media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp
index ddced5f..aa07e57 100644
--- a/media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp
+++ b/media/libstagefright/codecs/m4v_h263/dec/SoftMPEG4.cpp
@@ -421,8 +421,13 @@ void SoftMPEG4::onQueueFilled(OMX_U32 portIndex) {
int32_t bufferSize = inHeader->nFilledLen;
+ // The PV decoder is lying to us, sometimes it'll claim to only have
+ // consumed a subset of the buffer when it clearly consumed all of it.
+ // ignore whatever it says...
+ int32_t tmp = bufferSize;
+
if (PVDecodeVideoFrame(
- mHandle, &bitstream, &timestamp, &bufferSize,
+ mHandle, &bitstream, &timestamp, &tmp,
&useExtTimestamp,
outHeader->pBuffer) != PV_TRUE) {
LOGE("failed to decode video frame.");