[test]: modify sleep time to improve the decoding effciency

it is obvious.

Change-Id: I9ce91996ff6cebad01297281a6a0f3e5632680e5
Signed-off-by: sliver.chen <sliver.chen@rock-chips.com>
This commit is contained in:
sliver.chen
2017-12-08 09:11:57 +08:00
committed by Herman Chen
parent 45c05512eb
commit 3f6fc99b81

View File

@@ -253,7 +253,14 @@ static int decode_simple(MpiDecLoopData *data)
if (pkt_done) if (pkt_done)
break; 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); } while (1);
return ret; return ret;