aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFei Wang <fei.w.wang@intel.com>2024-08-15 10:19:50 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2024-08-16 14:15:04 +0800
commitbe7ab635522adf1331a2aa105a49045ba8e65192 (patch)
treec2e4154cdaefc44c2005b199f8ab4d3debc7fba2
parenta797317ab19d12df8c953dab3de548d14c4ba545 (diff)
downloadffmpeg-be7ab635522adf1331a2aa105a49045ba8e65192.tar.gz
lavc/qsvdec: Add vvc_mp4toannexb bsf for QSV VVC decoder
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@intel.com>
-rwxr-xr-xconfigure2
-rw-r--r--libavcodec/qsvdec.c2
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