[FFmpeg-devel] [PATCH] lavc/qsvdec: Add vvc_mp4toannexb bsf for QSV VVC decoder

Xiang, Haihao haihao.xiang at intel.com
Wed Aug 14 09:41:19 EEST 2024


On Di, 2024-08-13 at 16:01 +0800, fei.w.wang-at-intel.com at ffmpeg.org wrote:
> From: Fei Wang <fei.w.wang at intel.com>
> 
> Fix error:
> $ ffmpeg -hwaccel qsv -i input.mp4 -f null -
> ..
> [vvc_qsv @ 0000026890D966C0] Error decoding stream header: unknown error (-1)
> [vvc_qsv @ 0000026890D966C0] Error decoding header
> 
> Signed-off-by: Fei Wang <fei.w.wang at intel.com>
> ---
>  libavcodec/qsvdec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c
> index 9ad3439991..039ba62484 100644
> --- a/libavcodec/qsvdec.c
> +++ b/libavcodec/qsvdec.c
> @@ -1303,5 +1303,5 @@ DEFINE_QSV_DECODER(av1, AV1, NULL)
>  #endif
>  
>  #if CONFIG_VVC_QSV_DECODER
> -DEFINE_QSV_DECODER(vvc, VVC, NULL)
> +DEFINE_QSV_DECODER(vvc, VVC, "vvc_mp4toannexb")
>  #endif

Please update vvc_qsv_decoder_select in configure too. 

Thanks
Haihao



More information about the ffmpeg-devel mailing list