aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Hu <austin.hu@intel.com>2016-10-20 16:32:59 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-10-20 16:32:59 +0000
commitc0f2dd551d0445783010b6c70d9bf5ec4cdc10a9 (patch)
tree6f238d2d000cb8e62f08478233907089ff77d390
parent8341acda01fedb3e0036fdb77777c6fae0a128d9 (diff)
parentc98025c07f77d5090fcb40a194d1966ede6c2ea7 (diff)
downloadomx-components-c0f2dd551d0445783010b6c70d9bf5ec4cdc10a9.tar.gz
am: c98025c07f Change-Id: I7dc1bea0b0c77f12d449613a6a5d73e386f67fea
-rw-r--r--videocodec/OMXVideoDecoderVP9Hybrid.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/videocodec/OMXVideoDecoderVP9Hybrid.cpp b/videocodec/OMXVideoDecoderVP9Hybrid.cpp
index 53dbd48..fe8d5f8 100644
--- a/videocodec/OMXVideoDecoderVP9Hybrid.cpp
+++ b/videocodec/OMXVideoDecoderVP9Hybrid.cpp
@@ -379,6 +379,11 @@ OMX_ERRORTYPE OMXVideoDecoderVP9Hybrid::ProcessorProcess(
// drain the last frame, keep the current input buffer
res = mDecoderDecode(mCtx,mHybridCtx,NULL,0,true);
retains[INPORT_INDEX] = BUFFER_RETAIN_GETAGAIN;
+ } else if (res == -3) {
+ LOGW("on2 decoder skipped to decode the frame.");
+ (*pBuffers[OUTPORT_INDEX])->nOffset = 0;
+ (*pBuffers[OUTPORT_INDEX])->nFilledLen = 0;
+ return OMX_ErrorNone;
} else {
LOGE("on2 decoder failed to decode frame.");
return OMX_ErrorBadParameter;