[FFmpeg-cvslog] avcodec/asvenc: dont use a negative global_quality

Michael Niedermayer git at videolan.org
Sat May 24 21:43:20 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat May 24 20:33:49 2014 +0200| [ddeb58b90c41d1eea21122f30c9d78b30744ea88] | committer: Michael Niedermayer

avcodec/asvenc: dont use a negative global_quality

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ddeb58b90c41d1eea21122f30c9d78b30744ea88
---

 libavcodec/asvenc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/asvenc.c b/libavcodec/asvenc.c
index dd3d4f5..b098f47 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;
 



More information about the ffmpeg-cvslog mailing list