libvpxenc: only force CBR if a bitrate is set

Reviewed-by: James Zern <jzern@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/28/head
Michael Niedermayer 13 years ago
parent 6f98e298cc
commit 1ee7a2955f
  1. 2
      libavcodec/libvpxenc.c

@ -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…
Cancel
Save