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) {