From 30ba703496b97d58d98464190a1d0701680a0812 Mon Sep 17 00:00:00 2001 From: James Dong Date: Fri, 5 Aug 2011 14:53:59 -0700 Subject: Fix missing crop rect because of the incorrect state of OMX video decoder The crop event was sent from video decoder, but when SF uses getConfig to retrieve the crop info, the decoder reports an error because the state in the decoder was not properly set. Change-Id: I81b6ec53f221a4fd8b2c6a9f7324a776358cc3a5 related-to-bug: 5128788 --- sec_mm/sec_omx/sec_omx_component/video/dec/h264dec/SEC_OMX_H264dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sec_mm') diff --git a/sec_mm/sec_omx/sec_omx_component/video/dec/h264dec/SEC_OMX_H264dec.c b/sec_mm/sec_omx/sec_omx_component/video/dec/h264dec/SEC_OMX_H264dec.c index 446af9a..3a71f03 100644 --- a/sec_mm/sec_omx/sec_omx_component/video/dec/h264dec/SEC_OMX_H264dec.c +++ b/sec_mm/sec_omx/sec_omx_component/video/dec/h264dec/SEC_OMX_H264dec.c @@ -884,6 +884,7 @@ OMX_ERRORTYPE SEC_MFC_H264_Decode(OMX_COMPONENTTYPE *pOMXComponent, SEC_OMX_DATA /** Update Frame Size **/ + pH264Dec->hMFCH264Handle.bConfiguredMFC = OMX_TRUE; if ((cropInfo.crop_left_offset != 0) || (cropInfo.crop_right_offset != 0) || (cropInfo.crop_top_offset != 0) || (cropInfo.crop_bottom_offset != 0)) { /* change width and height information */ @@ -923,7 +924,6 @@ OMX_ERRORTYPE SEC_MFC_H264_Decode(OMX_COMPONENTTYPE *pOMXComponent, SEC_OMX_DATA NULL); } - pH264Dec->hMFCH264Handle.bConfiguredMFC = OMX_TRUE; #ifdef ADD_SPS_PPS_I_FRAME ret = OMX_ErrorInputDataDecodeYet; #else -- cgit v1.1