[FFmpeg-cvslog] r23784 - trunk/libavcodec/huffyuv.c
mru
subversion
Fri Jun 25 20:32:29 CEST 2010
Author: mru
Date: Fri Jun 25 20:32:29 2010
New Revision: 23784
Log:
huffyuv: make VLAs fixed size
Modified:
trunk/libavcodec/huffyuv.c
Modified: trunk/libavcodec/huffyuv.c
==============================================================================
--- trunk/libavcodec/huffyuv.c Fri Jun 25 20:25:49 2010 (r23783)
+++ trunk/libavcodec/huffyuv.c Fri Jun 25 20:32:29 2010 (r23784)
@@ -232,9 +232,9 @@ static void heap_sift(HeapElem *h, int r
}
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){
More information about the ffmpeg-cvslog
mailing list