Commit 188947c3 authored by slhck's avatar slhck Committed by Michael Niedermayer

libvpx: allow 0 as min quantizer value

Allow setting the min quantizer to 0 instead of 1 (libvpx allows 0); fixes #2136
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent af0e8144
...@@ -285,7 +285,7 @@ static av_cold int vpx_init(AVCodecContext *avctx, ...@@ -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; enccfg.rc_min_quantizer = avctx->qmin;
if (avctx->qmax > 0) if (avctx->qmax > 0)
enccfg.rc_max_quantizer = avctx->qmax; enccfg.rc_max_quantizer = avctx->qmax;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment