[FFmpeg-cvslog] libvpx: allow 0 as min quantizer value
slhck
git at videolan.org
Mon Feb 25 20:51:20 CET 2013
ffmpeg | branch: master | slhck <werner.robitza at gmail.com> | Mon Feb 25 19:12:19 2013 +0100| [188947c32ad66653fa3a73a33a307e35cecd8fb8] | committer: Michael Niedermayer
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 at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=188947c32ad66653fa3a73a33a307e35cecd8fb8
---
libavcodec/libvpxenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index a749e07..ed038ab 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;
More information about the ffmpeg-cvslog
mailing list