mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
qsvdec: properly handle the warning from MFXVideoCORE_SyncOperation
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
a43905f4ae
commit
3b6473b43e
1 changed files with 3 additions and 1 deletions
|
|
@ -278,7 +278,9 @@ static int qsv_decode(AVCodecContext *avctx, QSVContext *q,
|
||||||
av_fifo_generic_read(q->async_fifo, &sync, sizeof(sync), NULL);
|
av_fifo_generic_read(q->async_fifo, &sync, sizeof(sync), NULL);
|
||||||
out_frame->queued = 0;
|
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;
|
src_frame = out_frame->frame;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue