aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Hu <austin.hu@intel.com>2016-10-20 16:49:01 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-10-20 16:49:01 +0000
commita169cd5af2fc3fb2c1fbd372619b54940bd4ade3 (patch)
tree38e9cac422296cef855c6dc14b0ffd9bebc30b4c
parent5e939e7ecb17428bf964918f4babb86f315e48ee (diff)
parent3db8bb9d44eef64553a88fdc2698ef3b593c49c7 (diff)
downloadomx-components-a169cd5af2fc3fb2c1fbd372619b54940bd4ade3.tar.gz
Handle the skip decoding case. am: c98025c07f am: c0f2dd551d
am: 3db8bb9d44 Change-Id: I18c668fea03ed7cb9319a5db5e2f6a775162b9c7
-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;