From 0e6c8532215790bbe560a9eea4f3cc82bb55cf92 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Wed, 9 Sep 2015 04:18:26 +0200 Subject: lavc: Move b_frame_strategy and b_sensitivity to codec private options The b_frame_strategy option is only used by mpegvideoenc, qsv, x264, and xavs, while b_sensitivity is only used by mpegvideoenc. These are very codec-specific options, so deprecate the global variants. Set proper limits to the maximum allowed values. Signed-off-by: Vittorio Giovara --- libavcodec/qsvenc_hevc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/qsvenc_hevc.c') diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c index 343733bdbe..8884e240d9 100644 --- a/libavcodec/qsvenc_hevc.c +++ b/libavcodec/qsvenc_hevc.c @@ -244,7 +244,9 @@ static const AVCodecDefault qsv_enc_defaults[] = { { "bf", "8" }, { "flags", "+cgop" }, +#if FF_API_PRIVATE_OPT { "b_strategy", "-1" }, +#endif { NULL }, }; -- cgit v1.2.3