summaryrefslogtreecommitdiff
path: root/libavcodec/qsvenc_mpeg2.c
diff options
context:
space:
mode:
authorDmitry Rogozhkin <dmitry.v.rogozhkin-at-intel.com@ffmpeg.org>2022-05-19 12:54:16 -0700
committerHaihao Xiang <haihao.xiang@intel.com>2022-05-25 15:17:35 +0800
commitf8a07c4d4abbd3974e074bc54bc22eeaa0f46051 (patch)
tree7f46b9f4adb08a105956a933696bd9817b36c6d8 /libavcodec/qsvenc_mpeg2.c
parentcc679054c715acda9438e566b8de3a9eba421ac3 (diff)
downloadffmpeg-f8a07c4d4abbd3974e074bc54bc22eeaa0f46051.tar.gz
libavcodec/qsvenc: expose only supported options
vp9, hevc, avc, mpeg2 QSV encoders inherit common list of options (QSV_COMMON_OPTS) while bunch of options is not actually supported by current qsv code. The only codec which supportes everything is avc, followed by hevc, while vp9 and mpeg2 significantly fall behind. This creates difficulties for the users to use qsv encoders. This patch fixes options list for encoders leaving only those which are actually supported. Signed-off-by: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com> Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
Diffstat (limited to 'libavcodec/qsvenc_mpeg2.c')
-rw-r--r--libavcodec/qsvenc_mpeg2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/qsvenc_mpeg2.c b/libavcodec/qsvenc_mpeg2.c
index 3f79b48cb8..5cb12a2582 100644
--- a/libavcodec/qsvenc_mpeg2.c
+++ b/libavcodec/qsvenc_mpeg2.c
@@ -64,6 +64,7 @@ static av_cold int qsv_enc_close(AVCodecContext *avctx)
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
static const AVOption options[] = {
QSV_COMMON_OPTS
+ QSV_OPTION_RDO
{ "profile", NULL, OFFSET(qsv.profile), AV_OPT_TYPE_INT, { .i64 = MFX_PROFILE_UNKNOWN }, 0, INT_MAX, VE, "profile" },
{ "unknown", NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_PROFILE_UNKNOWN }, INT_MIN, INT_MAX, VE, "profile" },