# HG changeset patch # User michael # Date 1173874534 0 # Node ID c43d2a68ec571c231df4845cc7d8198c22775b10 # Parent 9b35cbf0b25bf13965395bcc24bf9a659b39b530 kill av_mallocz_static() diff -r 9b35cbf0b25b -r c43d2a68ec57 dv.c --- a/dv.c Wed Mar 14 11:13:17 2007 +0000 +++ b/dv.c Wed Mar 14 12:15:34 2007 +0000 @@ -80,7 +80,7 @@ static struct dv_vlc_pair { uint32_t vlc; uint8_t size; -} (*dv_vlc_map)[DV_VLC_MAP_LEV_SIZE] = NULL; +} dv_vlc_map[DV_VLC_MAP_RUN_SIZE][DV_VLC_MAP_LEV_SIZE]; static void dv_build_unquantize_tables(DVVideoContext *s, uint8_t* perm) { @@ -123,10 +123,6 @@ done = 1; - dv_vlc_map = av_mallocz_static(DV_VLC_MAP_LEV_SIZE*DV_VLC_MAP_RUN_SIZE*sizeof(struct dv_vlc_pair)); - if (!dv_vlc_map) - return AVERROR(ENOMEM); - /* dv_anchor lets each thread know its Id */ for (i=0; i