diff options
author | James Zern <jzern@google.com> | 2013-11-03 00:28:56 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-11-03 01:00:16 +0100 |
commit | 23c03ac91eaea5978f761ca7d16bc6c9bdcb3834 (patch) | |
tree | e650b4b7d043bd4ebab0e307618f4837784df644 /libavcodec/libvpxenc.c | |
parent | 50f52a5498ff02c997d16b8181f32b933ce94b6b (diff) | |
download | ffmpeg-23c03ac91eaea5978f761ca7d16bc6c9bdcb3834.tar.gz |
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@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 23736ea815..0c112e8da2 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) { |