]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/asvenc: dont use a negative global_quality
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 24 May 2014 18:33:49 +0000 (20:33 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 24 May 2014 18:33:49 +0000 (20:33 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/asvenc.c

index dd3d4f5a507206e873b39c3531c9bdb3c71f9173..b098f47fb7682b5e20801a75f48e4b37eee05592 100644 (file)
@@ -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;