Commit 23c03ac9 authored by James Zern's avatar James Zern Committed by Michael Niedermayer

libvpxenc: allow qmax of 0

this is valid for both vp8 & vp9 and necessary for lossless in the
latter
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 50f52a54
......@@ -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) {
......
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