diff options
author | Zhong Li <zhong.li@intel.com> | 2018-10-25 19:14:16 +0800 |
---|---|---|
committer | Zhong Li <zhong.li@intel.com> | 2018-12-07 17:13:36 +0800 |
commit | c9f0cff5efd8096caf8a6fa37b0640abddcde8e8 (patch) | |
tree | 7874eaccd453fcb2a60fcb0d6fa53d00bdd89ca0 /libavcodec/qsvenc_h264.c | |
parent | c4a4cfa7628b0b958b7406012d7cfe1e11f1ca10 (diff) | |
download | ffmpeg-c9f0cff5efd8096caf8a6fa37b0640abddcde8e8.tar.gz |
lavc/qsvenc: add an option to set h264 pps for every frame
RepeatPPS is enabled by default in mfx. It is not necessary mostly and
wasting encoding bits.
Add an option to control it and disable it by default.
Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: Zhong Li <zhong.li@intel.com>
Diffstat (limited to 'libavcodec/qsvenc_h264.c')
-rw-r--r-- | libavcodec/qsvenc_h264.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/qsvenc_h264.c b/libavcodec/qsvenc_h264.c index 07c9d64e6b..8e61826eef 100644 --- a/libavcodec/qsvenc_h264.c +++ b/libavcodec/qsvenc_h264.c @@ -154,6 +154,8 @@ static const AVOption options[] = { { "auto" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = MFX_MF_AUTO }, INT_MIN, INT_MAX, VE, "mfmode" }, #endif + { "repeat_pps", "repeat pps for every frame", OFFSET(qsv.repeat_pps), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE }, + { NULL }, }; |