[FFmpeg-cvslog] libvpxenc: allow qmax of 0

James Zern git at videolan.org
Sun Nov 3 02:30:08 CET 2013


ffmpeg | branch: master | James Zern <jzern at google.com> | Sun Nov  3 00:28:56 2013 +0100| [23c03ac91eaea5978f761ca7d16bc6c9bdcb3834] | committer: Michael Niedermayer

libvpxenc: allow qmax of 0

this is valid for both vp8 & vp9 and necessary for lossless in the
latter

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=23c03ac91eaea5978f761ca7d16bc6c9bdcb3834
---

 libavcodec/libvpxenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 23736ea..0c112e8 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -320,7 +320,7 @@ static av_cold int vpx_init(AVCodecContext *avctx,
 
     if (avctx->qmin >= 0)
         enccfg.rc_min_quantizer = avctx->qmin;
-    if (avctx->qmax > 0)
+    if (avctx->qmax >= 0)
         enccfg.rc_max_quantizer = avctx->qmax;
 
     if (enccfg.rc_end_usage == VPX_CQ) {



More information about the ffmpeg-cvslog mailing list