aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/intrax8huf.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-04 04:16:17 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-07 00:07:45 +0200
commit51ca74b52593bcb1a74083875b688f889cf9b520 (patch)
tree0980e241a2d733023edbbc37a119de2c5090e58d /libavcodec/intrax8huf.h
parent1fa535e8f3cb1a4fcec71c39e55b6ba997c0b83e (diff)
downloadffmpeg-51ca74b52593bcb1a74083875b688f889cf9b520.tar.gz
avcodec/dvdec: Avoid stack buffers
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: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/intrax8huf.h')
0 files changed, 0 insertions, 0 deletions