diff options
author | ywan171 <yi.a.wang@intel.com> | 2014-12-17 23:28:11 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-17 23:28:11 +0000 |
commit | b41f9e39fcc4de1c003596a4d810f13179a100d0 (patch) | |
tree | 96c1d27a396d7e559b2f68376567e761cc6da584 /videocodec/OMXVideoDecoderVP9Hybrid.cpp | |
parent | 424c3183e5ed52e3333d3216e167e4328cf12c87 (diff) | |
parent | d7a24953f38460360b0cbfc14145b4067f9ed02b (diff) | |
download | android_hardware_intel_common_omx-components-b41f9e39fcc4de1c003596a4d810f13179a100d0.tar.gz android_hardware_intel_common_omx-components-b41f9e39fcc4de1c003596a4d810f13179a100d0.tar.bz2 android_hardware_intel_common_omx-components-b41f9e39fcc4de1c003596a4d810f13179a100d0.zip |
am d7a24953: vp9 hybrid omx
* commit 'd7a24953f38460360b0cbfc14145b4067f9ed02b':
vp9 hybrid omx
Diffstat (limited to 'videocodec/OMXVideoDecoderVP9Hybrid.cpp')
-rw-r--r-- | videocodec/OMXVideoDecoderVP9Hybrid.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/videocodec/OMXVideoDecoderVP9Hybrid.cpp b/videocodec/OMXVideoDecoderVP9Hybrid.cpp index dbffdea..55d481a 100644 --- a/videocodec/OMXVideoDecoderVP9Hybrid.cpp +++ b/videocodec/OMXVideoDecoderVP9Hybrid.cpp @@ -314,6 +314,13 @@ OMX_ERRORTYPE OMXVideoDecoderVP9Hybrid::FillRenderBuffer(OMX_BUFFERHEADERTYPE ** unsigned char *dst = buffer->pBuffer; fb_index = mGetRawDataOutput(mCtx,mHybridCtx,dst,height,stride); if (fb_index == -1) { + if (inportBufferFlags & OMX_BUFFERFLAG_EOS) { + // eos frame is non-shown frame + buffer->nFlags = OMX_BUFFERFLAG_EOS; + buffer->nOffset = 0; + buffer->nFilledLen = 0; + return OMX_ErrorNone; + } LOGV("vpx_codec_get_frame return NULL."); return OMX_ErrorNotReady; } @@ -327,6 +334,13 @@ OMX_ERRORTYPE OMXVideoDecoderVP9Hybrid::FillRenderBuffer(OMX_BUFFERHEADERTYPE ** fb_index = mGetOutput(mCtx,mHybridCtx, &mDecodedImageNewWidth, &mDecodedImageNewHeight); if (fb_index == -1) { + if (inportBufferFlags & OMX_BUFFERFLAG_EOS) { + // eos frame is no-shown frame + buffer->nFlags = OMX_BUFFERFLAG_EOS; + buffer->nOffset = 0; + buffer->nFilledLen = 0; + return OMX_ErrorNone; + } LOGV("vpx_codec_get_frame return NULL."); return OMX_ErrorNotReady; } |