[Ffmpeg-cvslog] r8400 - trunk/libavcodec/dv.c

michael subversion
Wed Mar 14 13:15:34 CET 2007


Author: michael
Date: Wed Mar 14 13:15:34 2007
New Revision: 8400

Modified:
   trunk/libavcodec/dv.c

Log:
kill av_mallocz_static()


Modified: trunk/libavcodec/dv.c
==============================================================================
--- trunk/libavcodec/dv.c	(original)
+++ trunk/libavcodec/dv.c	Wed Mar 14 13:15:34 2007
@@ -80,7 +80,7 @@ static RL_VLC_ELEM dv_rl_vlc[1184];
 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 @@ static int dvvideo_init(AVCodecContext *
 
         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<DV_ANCHOR_SIZE; i++)
             dv_anchor[i] = (void*)(size_t)i;




More information about the ffmpeg-cvslog mailing list