[FFmpeg-devel] [PATCH 1/2] libvpxenc: only force CBR if a bitrate is set
James Zern
jzern at google.com
Fri Aug 17 20:11:50 CEST 2012
On Fri, Aug 17, 2012 at 8:55 AM, Michael Niedermayer <michaelni at gmx.at> wrote:
> Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> ---
> libavcodec/libvpxenc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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;
> --
> 1.7.9.5
>
lgtm
More information about the ffmpeg-devel
mailing list