• Claudio Freire's avatar
    AAC encoder: tweak rate-distortion logic · 7ec74ae4
    Claudio Freire authored
    This patch modifies the encode frame function to
    retry encoding the frame when the resulting bit count
    is too far off target, but only adjusting lambda
    in small, incremental step. It also makes the logic
    more conservative - otherwise it will contend with
    bit reservoir-related variations in bit allocation,
    and result in artifacts when frame have to be truncated
    (usually at high bit rates transitioning from low
    complexity to high complexity).
    7ec74ae4
psymodel.h 6.85 KB