• Andreas Rheinhardt's avatar
    avcodec/asvenc: Avoid reversing output data twice · 746ab832
    Andreas Rheinhardt authored
    The ASUS V2 format is designed for a little-endian bitstream reader, yet
    our encoder used an ordinary big-endian bitstream writer to write it;
    the bits of every byte were swapped at the end and some data (namely the
    numbers not in static tables) had to be bitreversed before writing it at
    all, so that it would be reversed twice.
    
    This commit stops doing so; instead, a little-endian bitstream writer is
    used. This also necessitated to switch certain static tables, which
    required trivial modifications to the decoder (that uses the same
    tables).
    Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    746ab832
asv.c 3.55 KB