mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
Merge commit '6ff29343b01923e9b125fe7404ac8701cdfb1fe5'
* commit '6ff29343b01923e9b125fe7404ac8701cdfb1fe5': lavc/qsvenc: set HRD buffer size Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
commit
0929def327
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user