From 3b6473b43eb69fc3faaf69f7fd0b83b51db7607f Mon Sep 17 00:00:00 2001 From: Maxym Dmytrychenko Date: Fri, 18 Dec 2015 14:24:36 +0100 Subject: [PATCH] qsvdec: properly handle the warning from MFXVideoCORE_SyncOperation Signed-off-by: Anton Khirnov --- libavcodec/qsvdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index ca6f78110b..3b0ede0a00 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c @@ -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;