]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libvpxenc.c
avcodec/vdpau: try to fix version macro use
[ffmpeg] / libavcodec / libvpxenc.c
index 23736ea815656951a7f4b5161fee162f7b0c5a3f..0c112e8da27c221079da99b3d60d45ba70ad2f38 100644 (file)
@@ -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) {