aboutsummaryrefslogtreecommitdiffstats
path: root/videocodec/OMXVideoEncoderAVC.cpp
diff options
context:
space:
mode:
authorZhao Liang <leo.zhao@intel.com>2013-01-24 15:23:13 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:02:50 -0700
commit0b8865606abd7a1e2c4e7db2cf44fdf583bdd77a (patch)
treeb885cf362598960b9f1ebb3aa4ce005bb22fa0e7 /videocodec/OMXVideoEncoderAVC.cpp
parent62b0bf25eda4d2f48a228d7f3483e773e08292e2 (diff)
downloadandroid_hardware_intel_common_omx-components-0b8865606abd7a1e2c4e7db2cf44fdf583bdd77a.tar.gz
android_hardware_intel_common_omx-components-0b8865606abd7a1e2c4e7db2cf44fdf583bdd77a.tar.bz2
android_hardware_intel_common_omx-components-0b8865606abd7a1e2c4e7db2cf44fdf583bdd77a.zip
Flush retain buffer at processing frame 2
BZ: 82486 Due to input buffer number changed to 2 on Yukb, it will cause ANR. releasing input buffer in time will fix issue. Change-Id: I337151144b5d9fb74d592a2b9859a50bcc18a722 Signed-off-by: Zhao Liang <leo.zhao@intel.com> Reviewed-on: http://android.intel.com:8080/88362 Reviewed-by: cactus <cactus@intel.com> Reviewed-by: Yuan, Shengquan <shengquan.yuan@intel.com> Reviewed-by: Shi, PingX <pingx.shi@intel.com> Tested-by: Shi, PingX <pingx.shi@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'videocodec/OMXVideoEncoderAVC.cpp')
-rw-r--r--videocodec/OMXVideoEncoderAVC.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/videocodec/OMXVideoEncoderAVC.cpp b/videocodec/OMXVideoEncoderAVC.cpp
index 5979303..5409271 100644
--- a/videocodec/OMXVideoEncoderAVC.cpp
+++ b/videocodec/OMXVideoEncoderAVC.cpp
@@ -487,6 +487,7 @@ OMX_ERRORTYPE OMXVideoEncoderAVC::ProcessorProcess(
mFrameEncodedCount ++;
if (mFrameEncodedCount == 2) {//not getoutput for second encode frame to keep in async mode
eInfo.DataRetrieved = true;
+ ports[INPORT_INDEX]->ReturnAllRetainedBuffers();
retains[INPORT_INDEX] = BUFFER_RETAIN_ACCUMULATE;
retains[OUTPORT_INDEX] = BUFFER_RETAIN_GETAGAIN;
}