[FFmpeg-devel] [PATCH] libvpx: allow 0 as min quantizer value

slhck werner.robitza at gmail.com
Mon Feb 25 19:12:19 CET 2013


Allow setting the min quantizer to 0 instead of 1 (libvpx allows 0); fixes #2136
---
 libavcodec/libvpxenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index a749e07..ed038ab 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;
-- 
1.8.1.4



More information about the ffmpeg-devel mailing list