diff options
author | slhck <werner.robitza@gmail.com> | 2013-02-25 22:12:19 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-25 23:10:14 +0400 |
commit | 188947c32ad66653fa3a73a33a307e35cecd8fb8 (patch) | |
tree | 080a830a9912e8e7178cd02f3feab7eb5e0577fd /libavcodec/libvpxenc.c | |
parent | af0e8144cd8b903f510d48a3575b0cc499120909 (diff) |
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>
Diffstat (limited to 'libavcodec/libvpxenc.c')
-rw-r--r-- | libavcodec/libvpxenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c index a749e073a6..ed038abc9e 100644 --- a/libavcodec/libvpxenc.c +++ b/libavcodec/libvpxenc.c @@ -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; |