summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorslhck <werner.robitza@gmail.com>2013-02-25 19:12:19 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-25 20:10:14 +0100
commit188947c32ad66653fa3a73a33a307e35cecd8fb8 (patch)
tree080a830a9912e8e7178cd02f3feab7eb5e0577fd /libavcodec
parentaf0e8144cd8b903f510d48a3575b0cc499120909 (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')
-rw-r--r--libavcodec/libvpxenc.c2
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;