diff options
author | SeungBeom Kim <sbcrux.kim@samsung.com> | 2011-12-08 12:20:03 +0900 |
---|---|---|
committer | James Dong <jdong@google.com> | 2011-12-07 20:34:04 -0800 |
commit | b9e186067caad92c3f50c4abe87b55965a88ea6f (patch) | |
tree | a07e2adf8dc6ed77517b2cfee151cbe2cf5c403a /sec_mm/sec_omx/sec_omx_component/video/enc/SEC_OMX_Venc.c | |
parent | e13c61aaca8da78ab2e9460d3d03bdbff0e46fc4 (diff) | |
download | device_samsung_crespo-b9e186067caad92c3f50c4abe87b55965a88ea6f.zip device_samsung_crespo-b9e186067caad92c3f50c4abe87b55965a88ea6f.tar.gz device_samsung_crespo-b9e186067caad92c3f50c4abe87b55965a88ea6f.tar.bz2 |
Fix SEC-OMX Video Encode for get out encode last frame.
Change-Id: Ic03bc07a2299f63156e3a8fb56c4fe2d894a9164
Signed-off-by: SeungBeom Kim <sbcrux.kim@samsung.com>
related-to-bug: 5720764, 5679361
Diffstat (limited to 'sec_mm/sec_omx/sec_omx_component/video/enc/SEC_OMX_Venc.c')
-rw-r--r-- | sec_mm/sec_omx/sec_omx_component/video/enc/SEC_OMX_Venc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sec_mm/sec_omx/sec_omx_component/video/enc/SEC_OMX_Venc.c b/sec_mm/sec_omx/sec_omx_component/video/enc/SEC_OMX_Venc.c index 310064b..19e33de 100644 --- a/sec_mm/sec_omx/sec_omx_component/video/enc/SEC_OMX_Venc.c +++ b/sec_mm/sec_omx/sec_omx_component/video/enc/SEC_OMX_Venc.c @@ -688,6 +688,14 @@ OMX_BOOL SEC_Preprocessor_InputData(OMX_COMPONENTTYPE *pOMXComponent) if (pSECComponent->bUseFlagEOF == OMX_TRUE) { flagEOF = OMX_TRUE; checkedSize = checkInputStreamLen; + if (checkedSize == 0) { + SEC_OMX_BASEPORT *pSECPort = &pSECComponent->pSECPort[INPUT_PORT_INDEX]; + int width = pSECPort->portDefinition.format.video.nFrameWidth; + int height = pSECPort->portDefinition.format.video.nFrameHeight; + inputUseBuffer->remainDataLen = inputUseBuffer->dataLen = (width * height * 3) / 2; + checkedSize = checkInputStreamLen = inputUseBuffer->remainDataLen; + inputUseBuffer->nFlags |= OMX_BUFFERFLAG_EOS; + } if (inputUseBuffer->nFlags & OMX_BUFFERFLAG_EOS) { flagEOS = OMX_TRUE; } |