Files
FFmpeg/libavcodec
Andreas Rheinhardt 70bbb4cce8 avcodec/mss4: Simplify creating VLC tables
The lengths of the codes used by the mss4 decoder are ascending from
left to right and therefore the lengths can be run-length encoded and
the codes can be easily derived from them. And this is how it is indeed
done. Yet some things can nevertheless be improved:

a) The number of entries of the current VLC is implicitly contained in
the run-length table and needn't be externally prescribed.
b) The maximum length of a code is just the length of the last code
(given that the lengths are ascending), so there is no point in setting
max_bits in the loop itself.
c) One can offload the actual calculation of the codes to
ff_init_vlc_from_lengths().

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-12-08 17:51:46 +01:00
..
2020-02-07 13:36:57 -03:00
2020-10-15 22:53:56 +02:00
2020-06-10 12:36:44 +02:00
2020-08-26 21:13:38 +02:00
2020-08-26 21:13:38 +02:00
2020-12-08 17:51:44 +01:00
2020-12-08 17:51:45 +01:00
2020-03-12 20:26:48 +00:00
2020-03-12 20:26:48 +00:00
2020-05-21 09:31:08 +02:00
2020-02-22 00:15:43 +01:00
2020-11-12 15:55:16 +01:00
2020-10-24 19:11:12 +02:00
2020-11-10 02:14:29 +01:00
2020-03-22 11:55:44 -03:00
2020-06-05 18:14:17 +02:00
2020-11-24 11:35:03 +01:00
2020-11-24 11:35:03 +01:00
2020-06-14 18:20:37 +02:00
2020-06-15 04:22:28 +02:00
2020-07-20 18:41:09 +02:00
2020-07-20 18:41:09 +02:00
2020-12-08 17:51:45 +01:00
2020-12-08 17:51:46 +01:00
2020-10-19 05:15:00 +02:00
2020-11-24 09:38:35 +01:00
2020-11-24 09:38:35 +01:00
2020-11-24 09:38:35 +01:00
2020-01-11 23:31:18 +01:00
2020-05-12 01:00:28 +02:00
2020-11-11 18:36:09 +01:00
2020-05-26 10:52:12 +01:00
2020-05-26 10:52:12 +01:00
2020-05-26 10:52:12 +01:00
2020-06-08 20:45:56 +02:00
2020-05-30 18:02:55 +02:00
2020-07-05 19:59:49 +02:00
2020-09-01 14:19:19 +02:00
2020-04-04 23:26:15 +02:00
2020-05-22 22:23:18 +02:00
2020-11-24 09:38:35 +01:00
2020-11-24 09:38:35 +01:00
2020-11-24 09:38:35 +01:00
2020-01-13 23:26:25 +00:00
2020-07-20 18:41:09 +02:00
2020-12-08 17:51:44 +01:00
2020-11-02 22:57:23 +00:00
2020-01-11 23:31:18 +01:00
2020-04-26 18:38:25 +01:00
2020-04-16 15:05:07 -03:00
2020-10-23 10:37:04 +02:00
2020-05-23 07:07:36 +02:00
2020-10-16 00:38:50 +02:00