From b27bd8a7eb9232ff6fe88eb095470a285125189c Mon Sep 17 00:00:00 2001 From: buddy.liong Date: Tue, 27 May 2014 12:04:53 -0500 Subject: [DCE_TEST] When outBufsInUse is set, use previous inputID When handling interlace clip, the codec can hold the output buffer after processing the top field frame. The codec will set the outBufsInUse flag. When the application receives an indication that outBufsInUse flag is set, the application should use the previous inputID as the inputID and not sending a new output buffer (set to NULL on the output buffer) on the next VIDDEC3_process call. Change-Id: Id5e05984330e686ec5ea449be5d0aff8f8802d70 Signed-off-by: buddy.liong --- test_qnx/dce_test/dce_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_qnx/dce_test/dce_test.c b/test_qnx/dce_test/dce_test.c index 383b4ae..2a4ae1a 100644 --- a/test_qnx/dce_test/dce_test.c +++ b/test_qnx/dce_test/dce_test.c @@ -1197,8 +1197,8 @@ int main(int argc, char * *argv) /* * Input buffer has data to be decoded. */ - inArgs->inputID = (XDAS_Int32)buf; if( !outBufsInUse ) { + inArgs->inputID = (XDAS_Int32)buf; // Set inputID to output buf; when outBufsInUse is TRUE, then leave inputID to the previous one. outBufs->numBufs = 2; outBufs->descs[0].buf = (XDAS_Int8 *)buf->y; outBufs->descs[1].buf = (XDAS_Int8 *)buf->uv; -- cgit v1.2.3-54-g00ecf