diff options
author | Mark Thompson <sw@jkqxz.net> | 2018-09-18 23:30:45 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-09-23 14:42:33 +0100 |
commit | af532c921575eb8ee805cc2c64a914f6302442e1 (patch) | |
tree | 374d7b38b0f404530c2102cda7e77c947d57b354 /libavcodec/vaapi_encode_mjpeg.c | |
parent | 2562dd9e7831743ba6dc5680501fb7d26a2ec62c (diff) | |
download | ffmpeg-af532c921575eb8ee805cc2c64a914f6302442e1.tar.gz |
vaapi_encode: Clean up rate control configuration
Query which modes are supported and select between VBR and CBR based
on that - this removes all of the codec-specific rate control mode
selection code.
Diffstat (limited to 'libavcodec/vaapi_encode_mjpeg.c')
-rw-r--r-- | libavcodec/vaapi_encode_mjpeg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/vaapi_encode_mjpeg.c b/libavcodec/vaapi_encode_mjpeg.c index b328beaa09..67ac2fba96 100644 --- a/libavcodec/vaapi_encode_mjpeg.c +++ b/libavcodec/vaapi_encode_mjpeg.c @@ -388,8 +388,6 @@ static av_cold int vaapi_encode_mjpeg_init(AVCodecContext *avctx) ctx->codec = &vaapi_encode_type_mjpeg; - ctx->va_rc_mode = VA_RC_CQP; - // The JPEG image header - see note above. ctx->va_packed_headers = VA_ENC_PACKED_HEADER_RAW_DATA; @@ -402,6 +400,7 @@ static av_cold int vaapi_encode_mjpeg_init(AVCodecContext *avctx) static const AVCodecDefault vaapi_encode_mjpeg_defaults[] = { { "global_quality", "80" }, + { "b", "0" }, { NULL }, }; |