Commit 0929def3 authored by James Almer's avatar James Almer

Merge commit '6ff29343'

* commit '6ff29343':
  lavc/qsvenc: set HRD buffer size
Merged-by: 's avatarJames Almer <jamrial@gmail.com>
parents 5fc64950 6ff29343
......@@ -495,6 +495,7 @@ static int init_video_param(AVCodecContext *avctx, QSVEncContext *q)
#if QSV_HAVE_VCM
case MFX_RATECONTROL_VCM:
#endif
q->param.mfx.BufferSizeInKB = avctx->rc_buffer_size / 8000;
q->param.mfx.InitialDelayInKB = avctx->rc_initial_buffer_occupancy / 1000;
q->param.mfx.TargetKbps = avctx->bit_rate / 1000;
q->param.mfx.MaxKbps = avctx->rc_max_rate / 1000;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment