]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
kill a av_mallocz_static()
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 13 Mar 2007 23:30:28 +0000 (23:30 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 13 Mar 2007 23:30:28 +0000 (23:30 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8395 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/dv.c

index b5f15df27a8368af73790ae7025b431698207cc4..779f353b4bd957c4a8bc86f46db2e3591485d919 100644 (file)
@@ -75,7 +75,7 @@ static void* dv_anchor[DV_ANCHOR_SIZE];
 #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 @@ static int dvvideo_init(AVCodecContext *avctx)
            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];