mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-01 07:20:58 +00: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