Browse Source

avcodec/asvenc: dont use a negative global_quality

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
ddeb58b90c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/asvenc.c

+ 1
- 1
libavcodec/asvenc.c View 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;



Loading…
Cancel
Save