From 23c03ac91eaea5978f761ca7d16bc6c9bdcb3834 Mon Sep 17 00:00:00 2001 From: James Zern Date: Sun, 3 Nov 2013 00:28:56 +0100 Subject: [PATCH] libvpxenc: allow qmax of 0 this is valid for both vp8 & vp9 and necessary for lossless in the latter 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 23736ea815..0c112e8da2 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -320,7 +320,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) {