Revision 2df6e978

View differences:

libavcodec/dv.c
75 75
#endif
76 76

  
77 77
/* XXX: also include quantization */
78
static RL_VLC_ELEM *dv_rl_vlc;
78
static RL_VLC_ELEM dv_rl_vlc[1184];
79 79
/* VLC encoding lookup table */
80 80
static struct dv_vlc_pair {
81 81
   uint32_t vlc;
......
154 154
           to accelerate the parsing of partial codes */
155 155
        init_vlc(&dv_vlc, TEX_VLC_BITS, j,
156 156
                 new_dv_vlc_len, 1, 1, new_dv_vlc_bits, 2, 2, 0);
157

  
158
        dv_rl_vlc = av_mallocz_static(dv_vlc.table_size * sizeof(RL_VLC_ELEM));
159
        if (!dv_rl_vlc)
160
            return AVERROR(ENOMEM);
157
        assert(dv_vlc.table_size == 1184);
161 158

  
162 159
        for(i = 0; i < dv_vlc.table_size; i++){
163 160
            int code= dv_vlc.table[i][0];

Also available in: Unified diff