Merge "Don't believe the PV decoder's lies..." into ics-mr1
This commit is contained in:
committed by
Android (Google) Code Review
commit
b42aea5b4c
@@ -421,8 +421,13 @@ void SoftMPEG4::onQueueFilled(OMX_U32 portIndex) {
|
|||||||
|
|
||||||
int32_t bufferSize = inHeader->nFilledLen;
|
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(
|
if (PVDecodeVideoFrame(
|
||||||
mHandle, &bitstream, ×tamp, &bufferSize,
|
mHandle, &bitstream, ×tamp, &tmp,
|
||||||
&useExtTimestamp,
|
&useExtTimestamp,
|
||||||
outHeader->pBuffer) != PV_TRUE) {
|
outHeader->pBuffer) != PV_TRUE) {
|
||||||
LOGE("failed to decode video frame.");
|
LOGE("failed to decode video frame.");
|
||||||
|
|||||||
Reference in New Issue
Block a user