Commit 3b6473b4 authored by Maxym Dmytrychenko's avatar Maxym Dmytrychenko Committed by Anton Khirnov

qsvdec: properly handle the warning from MFXVideoCORE_SyncOperation

Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent a43905f4
......@@ -278,7 +278,9 @@ static int qsv_decode(AVCodecContext *avctx, QSVContext *q,
av_fifo_generic_read(q->async_fifo, &sync, sizeof(sync), NULL);
out_frame->queued = 0;
MFXVideoCORE_SyncOperation(q->session, sync, 60000);
do {
ret = MFXVideoCORE_SyncOperation(q->session, sync, 1000);
} while (ret == MFX_WRN_IN_EXECUTION);
src_frame = out_frame->frame;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment