mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-09 01:07:01 +02:00
libvpxenc: only force CBR if a bitrate is set
Reviewed-by: James Zern <jzern@google.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6f98e298cc
commit
1ee7a2955f
@ -266,7 +266,7 @@ static av_cold int vp8_init(AVCodecContext *avctx)
|
||||
enccfg.g_pass = VPX_RC_ONE_PASS;
|
||||
|
||||
if (avctx->rc_min_rate == avctx->rc_max_rate &&
|
||||
avctx->rc_min_rate == avctx->bit_rate)
|
||||
avctx->rc_min_rate == avctx->bit_rate && avctx->bit_rate)
|
||||
enccfg.rc_end_usage = VPX_CBR;
|
||||
else if (ctx->crf)
|
||||
enccfg.rc_end_usage = VPX_CQ;
|
||||
|
Loading…
Reference in New Issue
Block a user