# HG changeset patch # User michael # Date 1173828628 0 # Node ID 5b6f5e7ed3a0f76a2ece3eba29e5a654be68164f # Parent c800e1a03b9caa5b64266c63d292022ef1b4d757 kill a av_mallocz_static() diff -r c800e1a03b9c -r 5b6f5e7ed3a0 dv.c --- a/dv.c Tue Mar 13 23:10:42 2007 +0000 +++ b/dv.c Tue Mar 13 23:30:28 2007 +0000 @@ -75,7 +75,7 @@ #endif /* XXX: also include quantization */ -static RL_VLC_ELEM *dv_rl_vlc; +static RL_VLC_ELEM dv_rl_vlc[1184]; /* VLC encoding lookup table */ static struct dv_vlc_pair { uint32_t vlc; @@ -154,10 +154,7 @@ to accelerate the parsing of partial codes */ init_vlc(&dv_vlc, TEX_VLC_BITS, j, new_dv_vlc_len, 1, 1, new_dv_vlc_bits, 2, 2, 0); - - dv_rl_vlc = av_mallocz_static(dv_vlc.table_size * sizeof(RL_VLC_ELEM)); - if (!dv_rl_vlc) - return AVERROR(ENOMEM); + assert(dv_vlc.table_size == 1184); for(i = 0; i < dv_vlc.table_size; i++){ int code= dv_vlc.table[i][0];