From 3f6fc99b81ce436d53d15ee65a953b2dda2b3833 Mon Sep 17 00:00:00 2001 From: "sliver.chen" Date: Fri, 8 Dec 2017 09:11:57 +0800 Subject: [PATCH] [test]: modify sleep time to improve the decoding effciency it is obvious. Change-Id: I9ce91996ff6cebad01297281a6a0f3e5632680e5 Signed-off-by: sliver.chen --- test/mpi_dec_test.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/mpi_dec_test.c b/test/mpi_dec_test.c index 20c8ca63..0614def0 100644 --- a/test/mpi_dec_test.c +++ b/test/mpi_dec_test.c @@ -253,7 +253,14 @@ static int decode_simple(MpiDecLoopData *data) if (pkt_done) break; - msleep(50); + /* + * why sleep here: + * mpi->decode_put_packet will failed when packet in internal queue is + * full,waiting the package is consumed .Usually hardware decode one + * frame which resolution is 1080p needs 2 ms,so here we sleep 3ms + * * is enough. + */ + msleep(3); } while (1); return ret;