From ddeb58b90c41d1eea21122f30c9d78b30744ea88 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 24 May 2014 20:33:49 +0200 Subject: [PATCH] avcodec/asvenc: dont use a negative global_quality Signed-off-by: Michael Niedermayer --- libavcodec/asvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/asvenc.c b/libavcodec/asvenc.c index dd3d4f5a50..b098f47fb7 100644 --- a/libavcodec/asvenc.c +++ b/libavcodec/asvenc.c @@ -239,7 +239,7 @@ static av_cold int encode_init(AVCodecContext *avctx){ ff_asv_common_init(avctx); - if(avctx->global_quality == 0) avctx->global_quality= 4*FF_QUALITY_SCALE; + if(avctx->global_quality <= 0) avctx->global_quality= 4*FF_QUALITY_SCALE; a->inv_qscale= (32*scale*FF_QUALITY_SCALE + avctx->global_quality/2) / avctx->global_quality;