diff options
author | Måns Rullgård <mans@mansr.com> | 2010-06-25 08:19:20 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-06-25 08:19:20 +0000 |
commit | 9bfb72d9e9e1dba3478e6ff2d2e25c16fe01cf7a (patch) | |
tree | e7ab3af3028aeab850adf37f3889c6d7b541767d /libavcodec/rv34.c | |
parent | c47f567c701d49f26b514a7156ccc594b18c788b (diff) | |
download | ffmpeg-9bfb72d9e9e1dba3478e6ff2d2e25c16fe01cf7a.tar.gz |
rv34: kill VLAs
Originally committed as revision 23774 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv34.c')
-rw-r--r-- | libavcodec/rv34.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c index 88652f9fe1..fa3f23f58e 100644 --- a/libavcodec/rv34.c +++ b/libavcodec/rv34.c @@ -103,8 +103,8 @@ static void rv34_gen_vlc(const uint8_t *bits, int size, VLC *vlc, const uint8_t { int i; int counts[17] = {0}, codes[17]; - uint16_t cw[size], syms[size]; - uint8_t bits2[size]; + uint16_t cw[MAX_VLC_SIZE], syms[MAX_VLC_SIZE]; + uint8_t bits2[MAX_VLC_SIZE]; int maxbits = 0, realsize = 0; for(i = 0; i < size; i++){ |