Commit ddeb58b9 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/asvenc: dont use a negative global_quality

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9a7d332b
...@@ -239,7 +239,7 @@ static av_cold int encode_init(AVCodecContext *avctx){ ...@@ -239,7 +239,7 @@ static av_cold int encode_init(AVCodecContext *avctx){
ff_asv_common_init(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; a->inv_qscale= (32*scale*FF_QUALITY_SCALE + avctx->global_quality/2) / avctx->global_quality;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment