diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c index 6598d3e397..2dda9bbf7b 100644 --- a/libavcodec/bitstream.c +++ b/libavcodec/bitstream.c @@ -310,6 +310,10 @@ int ff_init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes, return -1;\ }\ GET_DATA(buf[j].code, codes, i, codes_wrap, codes_size);\ + if (buf[j].code >= (1LL<