diff options
author | Andreas Rheinhardt <[email protected]> | 2020-10-26 00:05:26 +0100 |
---|---|---|
committer | Andreas Rheinhardt <[email protected]> | 2020-10-27 10:34:23 +0100 |
commit | df6ec7f83b4fb65d760259e01182dc28b6cf3f2f (patch) | |
tree | 70d4f8ae74ad7acc6a6ecdf434e6afb75ed6dc1c /libavutil/tests/xtea.c | |
parent | 0da310d7bedcad362e76bae289cec2524d8f5ece (diff) |
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 <[email protected]>
Signed-off-by: Andreas Rheinhardt <[email protected]>
Diffstat (limited to 'libavutil/tests/xtea.c')
0 files changed, 0 insertions, 0 deletions