diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-01-23 01:32:49 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-23 01:43:00 +0100 |
commit | 622d463000371467cb0365744f0c1d92b56bed52 (patch) | |
tree | 0a7d80f3964ab1fa419307480df3109486b89f1f /libavcodec/bitstream.c | |
parent | 35fe88bb51692612858cb78b3d2f11274adf554e (diff) | |
download | ffmpeg-622d463000371467cb0365744f0c1d92b56bed52.tar.gz |
avcodec/bitstream: assert that no integer overflow happened when writing codes in build_table()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/bitstream.c')
-rw-r--r-- | libavcodec/bitstream.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/bitstream.c b/libavcodec/bitstream.c index 99119cdcfa..e907322871 100644 --- a/libavcodec/bitstream.c +++ b/libavcodec/bitstream.c @@ -232,6 +232,7 @@ static int build_table(VLC *vlc, int table_nb_bits, int nb_codes, /* note: realloc has been done, so reload tables */ table = &vlc->table[table_index]; table[j][0] = index; //code + av_assert0(table[j][0] == index); i = k-1; } } |