diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-04-18 19:29:41 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-04-25 23:01:37 +0200 |
commit | e0df21b8c379f3e3025df9510258f91b0d01d3d8 (patch) | |
tree | b9911703656dfaca06c406f39a241b3acf1d95ba /tests/checkasm/checkasm.c | |
parent | d60445258ce5d11eaccc285e5c7931ad26a96eb5 (diff) | |
download | ffmpeg-e0df21b8c379f3e3025df9510258f91b0d01d3d8.tar.gz |
avcodec/webp: Switch to ff_vlc_init_from_lengths()
The earlier code would traverse over the code lengths
mutliple times (namely max_length + 1 times - once to get
the maximum length and once for each max_length to assign
codes) before calling ff_vlc_init_sparse() (which may traverse
them twice and sort them). The new code only traverses them once
(+ the one time in ff_vlc_init_from_lengths()).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests/checkasm/checkasm.c')
0 files changed, 0 insertions, 0 deletions