projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a43905f
)
qsvdec: properly handle the warning from MFXVideoCORE_SyncOperation
author
Maxym Dmytrychenko
<maxym.dmytrychenko@intel.com>
Fri, 18 Dec 2015 13:24:36 +0000
(14:24 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Fri, 1 Jan 2016 15:09:14 +0000
(16:09 +0100)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/qsvdec.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/qsvdec.c
b/libavcodec/qsvdec.c
index
ca6f781
..
3b0ede0
100644
(file)
--- 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;