From 188947c32ad66653fa3a73a33a307e35cecd8fb8 Mon Sep 17 00:00:00 2001 From: slhck Date: Mon, 25 Feb 2013 19:12:19 +0100 Subject: [PATCH] libvpx: allow 0 as min quantizer value Allow setting the min quantizer to 0 instead of 1 (libvpx allows 0); fixes #2136 Signed-off-by: Michael Niedermayer --- libavcodec/libvpxenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index a749e073a6..ed038abc9e 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -285,7 +285,7 @@ static av_cold int vpx_init(AVCodecContext *avctx, } } - if (avctx->qmin > 0) + if (avctx->qmin >= 0) enccfg.rc_min_quantizer = avctx->qmin; if (avctx->qmax > 0) enccfg.rc_max_quantizer = avctx->qmax;