aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorywan171 <yi.a.wang@intel.com>2014-12-11 19:24:56 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-11 19:24:56 +0000
commit051aad83f6b0242024b7b70c4bd795c8032d2865 (patch)
treee7000b5ad78af595a137dfa8d5d03c8a8096b95d
parent8d538b2fd5f18fffee5a207d1c543a23cf9178ad (diff)
parent3b7c847ac11fe6d547346fc47b932ae0534425cc (diff)
downloadandroid_hardware_intel_common_omx-components-051aad83f6b0242024b7b70c4bd795c8032d2865.tar.gz
android_hardware_intel_common_omx-components-051aad83f6b0242024b7b70c4bd795c8032d2865.tar.bz2
android_hardware_intel_common_omx-components-051aad83f6b0242024b7b70c4bd795c8032d2865.zip
am 3b7c847a: vp9 hybrid omx: if it\'s eos frame and encounter resolution change, retain the input buffer\'s len
* commit '3b7c847ac11fe6d547346fc47b932ae0534425cc': vp9 hybrid omx: if it's eos frame and encounter resolution change, retain the input buffer's len
-rw-r--r--videocodec/OMXVideoDecoderVP9Hybrid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/videocodec/OMXVideoDecoderVP9Hybrid.cpp b/videocodec/OMXVideoDecoderVP9Hybrid.cpp
index f0878c2..0e2730e 100644
--- a/videocodec/OMXVideoDecoderVP9Hybrid.cpp
+++ b/videocodec/OMXVideoDecoderVP9Hybrid.cpp
@@ -275,7 +275,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.