[libav-devel] [PATCH 2/2] qsvdec: properly handle the warning from MFXVideoCORE_SyncOperation

Luca Barbato lu_zero at gentoo.org
Fri Dec 18 15:34:59 CET 2015


On 18/12/15 14:26, Anton Khirnov wrote:
> From: Maxym Dmytrychenko <maxym.dmytrychenko at intel.com>
> 
> Signed-off-by: Anton Khirnov <anton at khirnov.net>
> ---
>  libavcodec/qsvdec.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c
> index ca6f781..3b0ede0 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;
>  
> 

Set Ok.

lu


More information about the libav-devel mailing list