aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/movenccenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-20 16:38:18 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-10-31 20:46:59 +0100
commitedc50658d967f893bb1e90666e7d400b1932fa45 (patch)
tree142f121dae046ba996654010e0362553053d9973 /libavformat/movenccenc.c
parent424c8ceb08b180b832e63d50cc363a197119ab7f (diff)
downloadffmpeg-edc50658d967f893bb1e90666e7d400b1932fa45.tar.gz
avcodec/vlc: Add functions to init static VLCElem[] without VLC
For lots of static VLCs, the number of bits is not read from VLC.bits, but rather a compile-constant that is hardcoded at the callsite of get_vlc2(). Only VLC.table is ever used and not using it directly is just an unnecessary indirection. This commit adds helper functions and macros to avoid the VLC structure when initializing VLC tables; there are 2x2 functions: Two choices for init_sparse or from_lengths and two choices for "overlong" initialization (as used when multiple VLCs are initialized that share the same underlying table). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/movenccenc.c')
0 files changed, 0 insertions, 0 deletions