mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
get_bits: make cache unsigned to eliminate undefined signed overflow.
This commit is contained in:
parent
0bd433a916
commit
47bc52f821
@ -127,7 +127,7 @@ for examples see get_bits, show_bits, skip_bits, get_vlc
|
|||||||
|
|
||||||
# define OPEN_READER(name, gb) \
|
# define OPEN_READER(name, gb) \
|
||||||
unsigned int name##_index = (gb)->index; \
|
unsigned int name##_index = (gb)->index; \
|
||||||
int name##_cache = 0
|
unsigned int name##_cache = 0
|
||||||
|
|
||||||
# define CLOSE_READER(name, gb) (gb)->index = name##_index
|
# define CLOSE_READER(name, gb) (gb)->index = name##_index
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user