• Andreas Rheinhardt's avatar
    avcodec/dvdec: Avoid stack buffers · 51ca74b5
    Andreas Rheinhardt authored
    Instead reuse the destination RL VLC as scratch space.
    This is possible, because the (implicit) codes here are already
    ordered from left-to-right in the tree and because the codelengths
    are increasing, which implies that mapping from VLC entries to the
    corresponding entries used to initialize the VLC is monotonically
    increasing. This means that one can reuse the right end of the
    destination RL VLC to store the tables used to initialize the VLC
    with.
    Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
    51ca74b5
dvdata.h 1.25 KB