Change #228364
Category | ffmpeg |
Changed by | Andreas Rheinhardt <andreas.rheinhardt | @outlook.com>
Changed at | Fri 25 Apr 2025 23:01:37 |
Repository | https://git.ffmpeg.org/ffmpeg.git |
Project | ffmpeg |
Branch | master |
Revision | e0df21b8c379f3e3025df9510258f91b0d01d3d8 |
Comments
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>
Changed files
- libavcodec/webp.c