Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-23 04:32:49 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-01-23 04:43:00 +0400
commit622d463000371467cb0365744f0c1d92b56bed52 (patch)
tree0a7d80f3964ab1fa419307480df3109486b89f1f /libavcodec/bitstream.c
parent35fe88bb51692612858cb78b3d2f11274adf554e (diff)
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.c1
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;
}
}