1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

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; 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;