aboutsummaryrefslogtreecommitdiffstats
path: root/videocodec/OMXVideoEncoderMPEG4.cpp
diff options
context:
space:
mode:
authorChang Ying <ying.chang@intel.com>2012-08-09 14:36:00 +0800
committerPatrick Tjin <pattjin@google.com>2014-07-21 22:02:48 -0700
commitf536dbda76fc8fddd355af82875a4521463cc4be (patch)
tree79790e129bf7e3dbb7822579fb9c9a810167f478 /videocodec/OMXVideoEncoderMPEG4.cpp
parent13bdc6512d6b7ee90de2ced4459b76e05ce797af (diff)
downloadandroid_hardware_intel_common_omx-components-f536dbda76fc8fddd355af82875a4521463cc4be.tar.gz
android_hardware_intel_common_omx-components-f536dbda76fc8fddd355af82875a4521463cc4be.tar.bz2
android_hardware_intel_common_omx-components-f536dbda76fc8fddd355af82875a4521463cc4be.zip
MP4E: Handle the 1st frame correctly.
BZ: 51323 The 1st frame is only used to generate codec data and the content is dropped, fix this problem. Change-Id: I6c2530aec323e9c714b06606b6ea982d567685a4 Signed-off-by: Chang Ying <ying.chang@intel.com> Reviewed-on: http://android.intel.com:8080/61676 Reviewed-by: Ding, Haitao <haitao.ding@intel.com> Tested-by: Ding, Haitao <haitao.ding@intel.com> Reviewed-by: buildbot <buildbot@intel.com> Tested-by: buildbot <buildbot@intel.com>
Diffstat (limited to 'videocodec/OMXVideoEncoderMPEG4.cpp')
-rw-r--r--videocodec/OMXVideoEncoderMPEG4.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/videocodec/OMXVideoEncoderMPEG4.cpp b/videocodec/OMXVideoEncoderMPEG4.cpp
index 67825fb..ac0225d 100644
--- a/videocodec/OMXVideoEncoderMPEG4.cpp
+++ b/videocodec/OMXVideoEncoderMPEG4.cpp
@@ -145,6 +145,7 @@ OMX_ERRORTYPE OMXVideoEncoderMPEG4::ProcessorProcess(
outflags |= OMX_BUFFERFLAG_ENDOFFRAME;
outflags |= OMX_BUFFERFLAG_SYNCFRAME;
+ retains[INPORT_INDEX] = BUFFER_RETAIN_GETAGAIN;
outfilledlen = outBuf.dataSize;
mFirstFrame = OMX_FALSE;
} else {