Browse Source

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>
tags/n1.2
slhck Michael Niedermayer 13 years ago
parent
commit
188947c32a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libvpxenc.c

+ 1
- 1
libavcodec/libvpxenc.c View File

@@ -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;


Loading…
Cancel
Save