• Rostislav Pehlivanov's avatar
    aacenc: reset special bands in the main frame encoding function · e6c9f3a1
    Rostislav Pehlivanov authored
    This commit moves the resetting of special bands (above RESERVED_BT)
    to the main frame encoding function rather than the way it was done
    previously in their corresponding search_for_... functions.
    
    The reason why special bands need to be reset is that while normal
    bands get chosen for every frame by the coder (twoloop by default)
    the coders do not touch any special sfbs and will therefore
    make them persist throughout the file.
    
    If we zero them out any bands left unmarked will be chosen by
    the second part of the coder (the trellis function in aaccoder.c).
    Signed-off-by: 's avatarRostislav Pehlivanov <atomnuker@gmail.com>
    e6c9f3a1
aaccoder.c 53.8 KB