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:
parent
af0e8144cd
commit
188947c32a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user