diff options
author | Austin Hu <austin.hu@intel.com> | 2016-06-30 11:48:59 +0800 |
---|---|---|
committer | Nick Desaulniers <ndesaulniers@google.com> | 2016-10-18 20:01:04 +0000 |
commit | c98025c07f77d5090fcb40a194d1966ede6c2ea7 (patch) | |
tree | 6f238d2d000cb8e62f08478233907089ff77d390 | |
parent | 8341acda01fedb3e0036fdb77777c6fae0a128d9 (diff) | |
download | omx-components-c98025c07f77d5090fcb40a194d1966ede6c2ea7.tar.gz |
Handle the skip decoding case.nougat-mr1-dev
Bug: 32242956
BZ: 50956, 49995
Change-Id: I09b76e58c4eda32bdae5774f1d40a3105396b65c
Signed-off-by: Austin Hu <austin.hu@intel.com>
Signed-off-by: Xin Wang <xin1.wang@intel.com>
-rw-r--r-- | videocodec/OMXVideoDecoderVP9Hybrid.cpp | 5 |
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; |