aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxym Dmytrychenko <maxym.dmytrychenko@intel.com>2015-12-18 14:24:36 +0100
committerAnton Khirnov <anton@khirnov.net>2016-01-01 16:09:14 +0100
commit3b6473b43eb69fc3faaf69f7fd0b83b51db7607f (patch)
tree013f53b56f27b30fe37c91faf647c8f00f233df7
parenta43905f4ae261bdde87c300901d867b31961f57b (diff)
downloadffmpeg-3b6473b43eb69fc3faaf69f7fd0b83b51db7607f.tar.gz
qsvdec: properly handle the warning from MFXVideoCORE_SyncOperation
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavcodec/qsvdec.c4
1 files changed, 3 insertions, 1 deletions
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;