diff options
author | Måns Rullgård <mans@mansr.com> | 2010-06-25 18:32:29 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-06-25 18:32:29 +0000 |
commit | d45b771ca08bb0b3ae3839bcd7adc76d79ab3228 (patch) | |
tree | 440d6b4c1bcf24ffa8d7296bf836529a8d76cb0a /libavcodec/huffyuv.c | |
parent | 4af8cdfc3f4a1f777e769cb97c61ef13674699f7 (diff) | |
download | ffmpeg-d45b771ca08bb0b3ae3839bcd7adc76d79ab3228.tar.gz |
huffyuv: make VLAs fixed size
Originally committed as revision 23784 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/huffyuv.c')
-rw-r--r-- | libavcodec/huffyuv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/huffyuv.c b/libavcodec/huffyuv.c index 7764c35181..f5125b694e 100644 --- a/libavcodec/huffyuv.c +++ b/libavcodec/huffyuv.c @@ -232,9 +232,9 @@ static void heap_sift(HeapElem *h, int root, int size) } static void generate_len_table(uint8_t *dst, const uint64_t *stats, int size){ - HeapElem h[size]; - int up[2*size]; - int len[2*size]; + HeapElem h[256]; + int up[2*256]; + int len[2*256]; int offset, i, next; for(offset=1; ; offset<<=1){ |