diff options
author | James Dong <jdong@google.com> | 2011-08-05 14:53:59 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2011-08-05 14:53:59 -0700 |
commit | 30ba703496b97d58d98464190a1d0701680a0812 (patch) | |
tree | 0872a64b588cdd7aa9dbd41d5f739d63afeb734b /sec_mm/sec_omx/sec_omx_component | |
parent | 83a2d5c2ed0298afff17628e9a0a473ccc6ed43c (diff) | |
download | device_samsung_crespo-30ba703496b97d58d98464190a1d0701680a0812.zip device_samsung_crespo-30ba703496b97d58d98464190a1d0701680a0812.tar.gz device_samsung_crespo-30ba703496b97d58d98464190a1d0701680a0812.tar.bz2 |
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
Diffstat (limited to 'sec_mm/sec_omx/sec_omx_component')
-rw-r--r-- | sec_mm/sec_omx/sec_omx_component/video/dec/h264dec/SEC_OMX_H264dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |