diff options
author | Austin Hu <austin.hu@intel.com> | 2016-10-20 16:32:59 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-10-20 16:32:59 +0000 |
commit | c0f2dd551d0445783010b6c70d9bf5ec4cdc10a9 (patch) | |
tree | 6f238d2d000cb8e62f08478233907089ff77d390 | |
parent | 8341acda01fedb3e0036fdb77777c6fae0a128d9 (diff) | |
parent | c98025c07f77d5090fcb40a194d1966ede6c2ea7 (diff) | |
download | omx-components-c0f2dd551d0445783010b6c70d9bf5ec4cdc10a9.tar.gz |
Handle the skip decoding case.android-7.1.2_r9android-7.1.2_r8android-7.1.2_r6android-7.1.2_r5android-7.1.2_r4android-7.1.2_r39android-7.1.2_r38android-7.1.2_r37android-7.1.2_r33android-7.1.2_r32android-7.1.2_r30android-7.1.2_r3android-7.1.2_r29android-7.1.2_r27android-7.1.2_r25android-7.1.2_r24android-7.1.2_r23android-7.1.2_r2android-7.1.2_r17android-7.1.2_r16android-7.1.2_r15android-7.1.2_r14android-7.1.2_r11android-7.1.2_r10android-7.1.2_r1nougat-mr2.3-releasenougat-mr2.2-releasenougat-mr2.1-releasenougat-mr2-security-releasenougat-mr2-pixel-releasenougat-mr2-dev
am: c98025c07f
Change-Id: I7dc1bea0b0c77f12d449613a6a5d73e386f67fea
-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; |