1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00
FFmpeg/libavcodec
Andreas Rheinhardt 943ce3a756 avcodec/bitstream: Consistently treat symbol as VLC_TYPE
If a static VLC table gets initialized a second time (or concurrently by
two threads) and if said VLC table uses symbols that have the sign bit
of VLC_TYPE (a typedef for int16_t) set, initializing the VLC fails. The
reason is that the type of the symbol in the temporary array is an
uint16_t and so comparing it to the symbol read from the VLC table will
fail, because only the lower 16bits coincide. Said failure triggers an
assert.

Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit df6ec7f83b4fb65d760259e01182dc28b6cf3f2f)
2021-02-27 07:20:58 +01:00
..
2020-05-27 22:13:39 +02:00
2021-02-02 14:18:21 +01:00
2021-02-02 14:18:21 +01:00
2020-05-30 18:02:55 +02:00
2020-05-30 18:02:55 +02:00
2020-05-21 09:31:08 +02:00
2021-02-02 14:18:21 +01:00
2020-04-26 18:38:25 +01:00
2020-06-05 18:14:17 +02:00
2020-06-14 22:02:34 +02:00
2020-04-26 18:38:25 +01:00
2021-02-02 14:18:21 +01:00
2021-02-20 14:21:24 +01:00
2020-05-19 20:09:25 +02:00
2020-05-12 01:00:28 +02: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-14 22:02:34 +02:00
2020-06-08 20:45:56 +02:00
2020-05-30 18:02:55 +02:00
2020-07-09 12:35:39 +02:00
2020-04-26 18:38:25 +01:00
2020-05-22 22:23:18 +02:00
2021-02-02 14:18:20 +01:00
2021-02-02 14:18:20 +01:00
2021-02-02 14:18:20 +01:00
2020-06-08 01:22:34 +02:00
2020-04-26 18:38:25 +01:00
2021-02-27 07:20:58 +01:00
2020-04-16 15:05:07 -03:00
2020-05-23 07:07:36 +02:00