• Claudio Freire's avatar
    AAC encoder: tweak PNS usage to be more aggressive · 9458a62d
    Claudio Freire authored
    This patch tweaks search_for_pns to be both more
    aggressive and more careful when applying PNS. On
    the one side, it will again try to use PNS on zero
    (or effectively zero) bands. For this, both zeroes
    and band_type have to be checked (some ZERO bands
    aren't marked in zeroes). On the other side, a more
    accurate rate-distortion measure avoids using PNS
    where it would cause audible distortion.
    
    Also fixed a small bug in the computation of freq
    that caused PNS usage on low-frequency bands during
    8-short windows. This allows re-enabling PNS during
    8-short.
    9458a62d
aac.mak 10.7 KB