Revision bd4110f9 libavcodec/indeo2.c

View differences:

libavcodec/indeo2.c
192 192

  
193 193
static av_cold int ir2_decode_init(AVCodecContext *avctx){
194 194
    Ir2Context * const ic = avctx->priv_data;
195
    static VLC_TYPE vlc_tables[1 << CODE_VLC_BITS][2];
195 196

  
196 197
    ic->avctx = avctx;
197 198

  
198 199
    avctx->pix_fmt= PIX_FMT_YUV410P;
199 200

  
200
    if (!ir2_vlc.table)
201
    ir2_vlc.table = vlc_tables;
202
    ir2_vlc.table_allocated = 1 << CODE_VLC_BITS;
201 203
#ifdef ALT_BITSTREAM_READER_LE
202 204
        init_vlc(&ir2_vlc, CODE_VLC_BITS, IR2_CODES,
203 205
                 &ir2_codes[0][1], 4, 2,
204
                 &ir2_codes[0][0], 4, 2, INIT_VLC_USE_STATIC | INIT_VLC_LE);
206
                 &ir2_codes[0][0], 4, 2, INIT_VLC_USE_NEW_STATIC | INIT_VLC_LE);
205 207
#else
206 208
        init_vlc(&ir2_vlc, CODE_VLC_BITS, IR2_CODES,
207 209
                 &ir2_codes[0][1], 4, 2,
208
                 &ir2_codes[0][0], 4, 2, INIT_VLC_USE_STATIC);
210
                 &ir2_codes[0][0], 4, 2, INIT_VLC_USE_NEW_STATIC);
209 211
#endif
210 212

  
211 213
    return 0;

Also available in: Unified diff