diff options
author | ywan171 <yi.a.wang@intel.com> | 2014-12-05 11:22:59 +0800 |
---|---|---|
committer | Patrick Tjin <pattjin@google.com> | 2014-12-10 21:30:59 -0800 |
commit | 3b7c847ac11fe6d547346fc47b932ae0534425cc (patch) | |
tree | 3625c31d24929d60b0089ff703c47b6c461f5c74 | |
parent | d5673bef309abf657748a91cbad83562de186803 (diff) | |
download | android_hardware_intel_common_omx-components-3b7c847ac11fe6d547346fc47b932ae0534425cc.tar.gz android_hardware_intel_common_omx-components-3b7c847ac11fe6d547346fc47b932ae0534425cc.tar.bz2 android_hardware_intel_common_omx-components-3b7c847ac11fe6d547346fc47b932ae0534425cc.zip |
vp9 hybrid omx: if it's eos frame and encounter resolution change, retain the input buffer's len
Bug: 18635096
Signed-off-by: ywan171 <yi.a.wang@intel.com>
Change-Id: I5b433c7c94f463777652bba94c443d979cba0f0f
-rw-r--r-- | videocodec/OMXVideoDecoderVP9Hybrid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/videocodec/OMXVideoDecoderVP9Hybrid.cpp b/videocodec/OMXVideoDecoderVP9Hybrid.cpp index 1246b7b..66b04de 100644 --- a/videocodec/OMXVideoDecoderVP9Hybrid.cpp +++ b/videocodec/OMXVideoDecoderVP9Hybrid.cpp @@ -276,7 +276,7 @@ OMX_ERRORTYPE OMXVideoDecoderVP9Hybrid::ProcessorProcess( bool outputEoS = ((*pBuffers[OUTPORT_INDEX])->nFlags & OMX_BUFFERFLAG_EOS); // if output port is not eos, retain the input buffer // until all the output buffers are drained. - if (inputEoS && !outputEoS) { + if (inputEoS && !outputEoS && retains[INPORT_INDEX] != BUFFER_RETAIN_GETAGAIN) { retains[INPORT_INDEX] = BUFFER_RETAIN_GETAGAIN; // the input buffer is retained for draining purpose. // Set nFilledLen to 0 so buffer will not be decoded again. |