diff options
author | Haihao Xiang <haihao.xiang@intel.com> | 2022-08-23 14:19:04 +0800 |
---|---|---|
committer | Haihao Xiang <haihao.xiang@intel.com> | 2022-08-29 09:37:49 +0800 |
commit | ea56f7d5e71ccab1b6fa44f1091153f91c1d4aeb (patch) | |
tree | 934afc83c958e2f8025c3b88c8e2ac09f758dd0d /libavcodec | |
parent | c953baa084607dd1d84c3bfcce3cf6a87c3e6e05 (diff) | |
download | ffmpeg-ea56f7d5e71ccab1b6fa44f1091153f91c1d4aeb.tar.gz |
lavc/qsvenc: ignore video signal info buffer for VP9
The SDK doesn't support this type of buffer for vp9 encoding
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/qsvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 202a645ea2..f1838ce597 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -970,7 +970,7 @@ static int init_video_param(AVCodecContext *avctx, QSVEncContext *q) q->extvsi.MatrixCoefficients = avctx->colorspace; } - if (q->extvsi.VideoFullRange || q->extvsi.ColourDescriptionPresent) { + if ((avctx->codec_id != AV_CODEC_ID_VP9) && (q->extvsi.VideoFullRange || q->extvsi.ColourDescriptionPresent)) { q->extvsi.Header.BufferId = MFX_EXTBUFF_VIDEO_SIGNAL_INFO; q->extvsi.Header.BufferSz = sizeof(q->extvsi); q->extparam_internal[q->nb_extparam_internal++] = (mfxExtBuffer *)&q->extvsi; |