mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
50f52a5498
commit
23c03ac91e
@ -320,7 +320,7 @@ static av_cold int vpx_init(AVCodecContext *avctx,
|
|||||||
|
|
||||||
if (avctx->qmin >= 0)
|
if (avctx->qmin >= 0)
|
||||||
enccfg.rc_min_quantizer = avctx->qmin;
|
enccfg.rc_min_quantizer = avctx->qmin;
|
||||||
if (avctx->qmax > 0)
|
if (avctx->qmax >= 0)
|
||||||
enccfg.rc_max_quantizer = avctx->qmax;
|
enccfg.rc_max_quantizer = avctx->qmax;
|
||||||
|
|
||||||
if (enccfg.rc_end_usage == VPX_CQ) {
|
if (enccfg.rc_end_usage == VPX_CQ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user