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

fei.w.wang at intel.com fei.w.wang at intel.com
Thu Aug 15 05:19:50 EEST 2024


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>
---
 configure           | 2 +-
 libavcodec/qsvdec.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 37178d7d81..ad82bc2d1f 100755
--- a/configure
+++ b/configure
@@ -3427,7 +3427,7 @@ vp9_vaapi_encoder_select="vaapi_encode"
 vp9_qsv_encoder_deps="libmfx MFX_CODEC_VP9"
 vp9_qsv_encoder_select="qsvenc"
 vp9_v4l2m2m_decoder_deps="v4l2_m2m vp9_v4l2_m2m"
-vvc_qsv_decoder_select="qsvdec"
+vvc_qsv_decoder_select="vvc_mp4toannexb_bsf qsvdec"
 
 # parsers
 aac_parser_select="adts_header mpeg4audio"
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
-- 
2.34.1



More information about the ffmpeg-devel mailing list