Revision bd4110f9 libavcodec/wnv1.c

View differences:

libavcodec/wnv1.c
129 129

  
130 130
static av_cold int decode_init(AVCodecContext *avctx){
131 131
    WNV1Context * const l = avctx->priv_data;
132
    static VLC_TYPE code_table[1 << CODE_VLC_BITS][2];
132 133

  
133 134
    l->avctx = avctx;
134 135
    avctx->pix_fmt = PIX_FMT_YUV422P;
135 136

  
136
    if(!code_vlc.table){
137
    code_vlc.table = code_table;
138
    code_vlc.table_allocated = 1 << CODE_VLC_BITS;
137 139
        init_vlc(&code_vlc, CODE_VLC_BITS, 16,
138 140
                    &code_tab[0][1], 4, 2,
139
                    &code_tab[0][0], 4, 2, INIT_VLC_USE_STATIC);
140
    }
141
                    &code_tab[0][0], 4, 2, INIT_VLC_USE_NEW_STATIC);
141 142

  
142 143
    return 0;
143 144
}

Also available in: Unified diff