diff options
author | sbcrux.kim <sbcrux.kim@samsung.com> | 2010-10-04 17:31:36 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-10-04 19:14:52 -0700 |
commit | 11437980929d672f18a4e5c02ade3d857c9efd66 (patch) | |
tree | 1b0e0abc1d56dc31e5b0d5238ae8e184950f922d /sec_mm/sec_omx | |
parent | f65045e0c40cf9c89f280c1a8808bc38b8c5cbab (diff) | |
download | device_samsung_crespo-11437980929d672f18a4e5c02ade3d857c9efd66.zip device_samsung_crespo-11437980929d672f18a4e5c02ade3d857c9efd66.tar.gz device_samsung_crespo-11437980929d672f18a4e5c02ade3d857c9efd66.tar.bz2 |
Fix End of Stream Problem
Change-Id: I5c25b6fe0da4a91733a9334aeecdf022c2579a05
Signed-off-by: sbcrux.kim <sbcrux.kim@samsung.com>
Diffstat (limited to 'sec_mm/sec_omx')
-rw-r--r-- | sec_mm/sec_omx/sec_omx_component/video/enc/h264enc/SEC_OMX_H264enc.c | 3 | ||||
-rw-r--r-- | sec_mm/sec_omx/sec_omx_component/video/enc/mpeg4enc/SEC_OMX_Mpeg4enc.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sec_mm/sec_omx/sec_omx_component/video/enc/h264enc/SEC_OMX_H264enc.c b/sec_mm/sec_omx/sec_omx_component/video/enc/h264enc/SEC_OMX_H264enc.c index d8a1ccb..a118b90 100644 --- a/sec_mm/sec_omx/sec_omx_component/video/enc/h264enc/SEC_OMX_H264enc.c +++ b/sec_mm/sec_omx/sec_omx_component/video/enc/h264enc/SEC_OMX_H264enc.c @@ -743,6 +743,9 @@ OMX_ERRORTYPE SEC_MFC_H264_Encode(OMX_COMPONENTTYPE *pOMXComponent, SEC_OMX_DATA pH264Enc->hMFCH264Handle.indexTimestamp = 0; if (oneFrameSize <= 0) { + pOutputData->timeStamp = pInputData->timeStamp; + pOutputData->nFlags = pInputData->nFlags; + ret = OMX_ErrorNone; goto EXIT; } diff --git a/sec_mm/sec_omx/sec_omx_component/video/enc/mpeg4enc/SEC_OMX_Mpeg4enc.c b/sec_mm/sec_omx/sec_omx_component/video/enc/mpeg4enc/SEC_OMX_Mpeg4enc.c index 4b59ffa..0596c25 100644 --- a/sec_mm/sec_omx/sec_omx_component/video/enc/mpeg4enc/SEC_OMX_Mpeg4enc.c +++ b/sec_mm/sec_omx/sec_omx_component/video/enc/mpeg4enc/SEC_OMX_Mpeg4enc.c @@ -879,6 +879,9 @@ OMX_ERRORTYPE SEC_MFC_Mpeg4_Encode(OMX_COMPONENTTYPE *pOMXComponent, SEC_OMX_DAT pMpeg4Enc->hMFCMpeg4Handle.indexTimestamp = 0; if (oneFrameSize <= 0) { + pOutputData->timeStamp = pInputData->timeStamp; + pOutputData->nFlags = pInputData->nFlags; + ret = OMX_ErrorNone; goto EXIT; } |