• Andreas Rheinhardt's avatar
    avcodec/bink: Don't waste space for VLC table · 56df06dd
    Andreas Rheinhardt authored
    The Bink video decoder uses VLCs; the longest codes of these VLCs have
    different lengths, yet they are all so small that each VLC is read in
    one go, so that the number of elements in the VLC table actually used by
    each table is 1 << nb_bits, where nb_bits is the length of the longest
    code. Yet when determining the size of the VLC table nb_bits has been
    overestimated as the number of bits of the longest code in all VLCs,
    making said table unnecessary big (2048 vs 976 elements).
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
    56df06dd
bink.c 47.9 KB