diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-11-06 13:29:34 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-11-20 09:25:58 +0100 |
commit | 3edac01f79a08635d8d2c08e9410651d9a330d61 (patch) | |
tree | b602d3473f2a5ed67ca1ddf631b39e37a0194f32 | |
parent | 4d8f536b535487063a08609636e712ad86d2ad54 (diff) | |
download | ffmpeg-3edac01f79a08635d8d2c08e9410651d9a330d61.tar.gz |
qsvenc: fix setting maxrate for VBR
-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 11c862c733..7e5c11e6f7 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -338,7 +338,7 @@ static int init_video_param(AVCodecContext *avctx, QSVEncContext *q) case MFX_RATECONTROL_VBR: q->param.mfx.InitialDelayInKB = avctx->rc_initial_buffer_occupancy / 1000; q->param.mfx.TargetKbps = avctx->bit_rate / 1000; - q->param.mfx.MaxKbps = avctx->bit_rate / 1000; + q->param.mfx.MaxKbps = avctx->rc_max_rate / 1000; break; case MFX_RATECONTROL_CQP: quant = avctx->global_quality / FF_QP2LAMBDA; |