diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-17 17:11:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-17 21:56:58 +0200 |
commit | 1ee7a2955f3ebd49a34ab4b9880889c4e0b5e423 (patch) | |
tree | abb53825ce7b9f265737f207c14f9c1c146960f4 /libavcodec/libvpxenc.c | |
parent | 6f98e298ccf38c57c7404cc995db911bfd321b94 (diff) | |
download | ffmpeg-streaming-1ee7a2955f3ebd49a34ab4b9880889c4e0b5e423.zip ffmpeg-streaming-1ee7a2955f3ebd49a34ab4b9880889c4e0b5e423.tar.gz |
libvpxenc: only force CBR if a bitrate is set
Reviewed-by: James Zern <jzern@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libvpxenc.c')
-rw-r--r-- | libavcodec/libvpxenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index 0b97907..b438301 100644 --- a/libavcodec/libvpxenc.c +++ b/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; |