[FFmpeg-devel] [PATCH] libvpxenc: allow qmax of 0

James Zern jzern at google.com
Sun Nov 3 00:28:56 CET 2013


this is valid for both vp8 & vp9 and necessary for lossless in the
latter
---
 libavcodec/libvpxenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 8ebf052..5830747 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -308,7 +308,7 @@ static av_cold int vpx_init(AVCodecContext *avctx,
 
     if (avctx->qmin >= 0)
         enccfg.rc_min_quantizer = avctx->qmin;
-    if (avctx->qmax > 0)
+    if (avctx->qmax >= 0)
         enccfg.rc_max_quantizer = avctx->qmax;
 
     if (enccfg.rc_end_usage == VPX_CQ) {
-- 
1.8.4.1



More information about the ffmpeg-devel mailing list