Merge commit '6ff29343b01923e9b125fe7404ac8701cdfb1fe5'
authorJames Almer <jamrial@gmail.com>
Thu, 14 Dec 2017 21:44:42 +0000 (18:44 -0300)
committerJames Almer <jamrial@gmail.com>
Thu, 14 Dec 2017 21:44:42 +0000 (18:44 -0300)
* commit '6ff29343b01923e9b125fe7404ac8701cdfb1fe5':
  lavc/qsvenc: set HRD buffer size

Merged-by: James Almer <jamrial@gmail.com>
libavcodec/qsvenc.c

index fbd4d85..74d9019 100644 (file)
@@ -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;