# HG changeset patch # User mru # Date 1277453960 0 # Node ID e8cf7f5fb7154b2b5cac19fcb148579bd6e892a8 # Parent fc9e4874a12c6ee31975448858b44a46bc3e91d2 rv34: kill VLAs diff -r fc9e4874a12c -r e8cf7f5fb715 rv34.c --- a/rv34.c Fri Jun 25 04:23:45 2010 +0000 +++ b/rv34.c Fri Jun 25 08:19:20 2010 +0000 @@ -103,8 +103,8 @@ { 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++){ diff -r fc9e4874a12c -r e8cf7f5fb715 rv34vlc.h --- a/rv34vlc.h Fri Jun 25 04:23:45 2010 +0000 +++ b/rv34vlc.h Fri Jun 25 08:19:20 2010 +0000 @@ -37,6 +37,7 @@ #define FIRSTBLK_VLC_SIZE 864 #define OTHERBLK_VLC_SIZE 108 #define COEFF_VLC_SIZE 32 +#define MAX_VLC_SIZE 1296 static const uint8_t rv34_table_intra_cbppat[NUM_INTRA_TABLES][2][CBPPAT_VLC_SIZE] = { {