Revision 4df5aebb

View differences:

libavcodec/aacpsy.c
419 419
        for (g = num_bands - 2; g >= 0; g--)
420 420
            band[g].thr = FFMAX(band[g].thr, band[g+1].thr * coeffs->spread_hi [g]);
421 421
        for (g = 0; g < num_bands; g++) {
422
            band[g].thr_quiet = FFMAX(band[g].thr, coeffs->ath[g]);
422
            band[g].thr_quiet = band[g].thr = FFMAX(band[g].thr, coeffs->ath[g]);
423 423
            if (!(wi->window_type[0] == LONG_STOP_SEQUENCE || (wi->window_type[1] == LONG_START_SEQUENCE && !w)))
424
                band[g].thr_quiet = FFMAX(PSY_3GPP_RPEMIN*band[g].thr_quiet,
425
                                          FFMIN(band[g].thr_quiet,
426
                                          PSY_3GPP_RPELEV*pch->prev_band[w+g].thr_quiet));
427
            band[g].thr = FFMAX(band[g].thr, band[g].thr_quiet * 0.25);
424
                band[g].thr = FFMAX(PSY_3GPP_RPEMIN*band[g].thr, FFMIN(band[g].thr,
425
                                    PSY_3GPP_RPELEV*pch->prev_band[w+g].thr_quiet));
428 426

  
429 427
            ctx->psy_bands[channel*PSY_MAX_BANDS+w+g].threshold = band[g].thr;
430 428
        }

Also available in: Unified diff