projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d8f536
)
qsvenc: fix setting maxrate for VBR
author
Anton Khirnov
<anton@khirnov.net>
Fri, 6 Nov 2015 12:29:34 +0000
(13:29 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Fri, 20 Nov 2015 08:25:58 +0000
(09:25 +0100)
libavcodec/qsvenc.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/qsvenc.c
b/libavcodec/qsvenc.c
index
11c862c
..
7e5c11e
100644
(file)
--- a/
libavcodec/qsvenc.c
+++ b/
libavcodec/qsvenc.c
@@
-338,7
+338,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;