From f536dbda76fc8fddd355af82875a4521463cc4be Mon Sep 17 00:00:00 2001 From: Chang Ying Date: Thu, 9 Aug 2012 14:36:00 +0800 Subject: 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 Reviewed-on: http://android.intel.com:8080/61676 Reviewed-by: Ding, Haitao Tested-by: Ding, Haitao Reviewed-by: buildbot Tested-by: buildbot --- videocodec/OMXVideoEncoderMPEG4.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'videocodec/OMXVideoEncoderMPEG4.cpp') 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 { -- cgit v1.2.3