summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2017-12-14 18:44:42 -0300
committerJames Almer <jamrial@gmail.com>2017-12-14 18:44:42 -0300
commit0929def32765807d156860fb13af1154ce4a249a (patch)
treedef5ee0398415518660be24d2e1199312aea6ac8 /libavcodec
parent5fc649505b2ddb72eee3fcb8611d3d715cd0f718 (diff)
parent6ff29343b01923e9b125fe7404ac8701cdfb1fe5 (diff)
downloadffmpeg-streaming-0929def32765807d156860fb13af1154ce4a249a.zip
ffmpeg-streaming-0929def32765807d156860fb13af1154ce4a249a.tar.gz
Merge commit '6ff29343b01923e9b125fe7404ac8701cdfb1fe5'
* commit '6ff29343b01923e9b125fe7404ac8701cdfb1fe5': lavc/qsvenc: set HRD buffer size Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/qsvenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index fbd4d85..74d9019 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -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;
OpenPOWER on IntegriCloud