Browse Source

avcodec/qsvenc: Set MaxKpbs to rc_max_rate for CBR and VBR (bitrate is equal to rc_max_rate for CBR)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.8
Sven Dueking Michael Niedermayer 10 years ago
parent
commit
f3fbe790d9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/qsvenc.c

+ 1
- 1
libavcodec/qsvenc.c View File

@@ -121,7 +121,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;


Loading…
Cancel
Save