changeset 11952:eef5eced3032 libavcodec

huffyuv: make VLAs fixed size
author mru
date Fri, 25 Jun 2010 18:32:29 +0000
parents afee30fe8c26
children 65470eea7561
files huffyuv.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/huffyuv.c	Fri Jun 25 18:25:49 2010 +0000
+++ b/huffyuv.c	Fri Jun 25 18:32:29 2010 +0000
@@ -232,9 +232,9 @@
 }
 
 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){