Revision 2876a9db

View differences:

libavcodec/psymodel.c
84 84
    ctx        = av_mallocz(sizeof(FFPsyPreprocessContext));
85 85
    ctx->avctx = avctx;
86 86

  
87
    if (avctx->flags & CODEC_FLAG_QSCALE)
87
    if (avctx->cutoff > 0)
88
        cutoff_coeff = 2.0 * avctx->cutoff / avctx->sample_rate;
89
    else if (avctx->flags & CODEC_FLAG_QSCALE)
88 90
        cutoff_coeff = 1.0f / av_clip(1 + avctx->global_quality / FF_QUALITY_SCALE, 1, 8);
89 91
    else
90 92
        cutoff_coeff = avctx->bit_rate / (4.0f * avctx->sample_rate * avctx->channels);

Also available in: Unified diff