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: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
slhck 2013-02-25 19:12:19 +01:00 committed by Michael Niedermayer
parent af0e8144cd
commit 188947c32a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
if (avctx->qmax > 0)
enccfg.rc_max_quantizer = avctx->qmax;