Revision 3abe5fbd libavcodec/utils.c

View differences:

libavcodec/utils.c
1247 1247
  return LIBAVCODEC_BUILD;
1248 1248
}
1249 1249

  
1250
static void init_crcs(void){
1251
#if LIBAVUTIL_VERSION_INT  < (50<<16)
1252
    av_crc04C11DB7= av_mallocz_static(sizeof(AVCRC) * 257);
1253
    av_crc8005    = av_mallocz_static(sizeof(AVCRC) * 257);
1254
    av_crc07      = av_mallocz_static(sizeof(AVCRC) * 257);
1255
#endif
1256
    av_crc_init(av_crc04C11DB7, 0, 32, AV_CRC_32_IEEE, sizeof(AVCRC)*257);
1257
    av_crc_init(av_crc8005    , 0, 16, AV_CRC_16     , sizeof(AVCRC)*257);
1258
    av_crc_init(av_crc07      , 0,  8, AV_CRC_8_ATM  , sizeof(AVCRC)*257);
1259
}
1260

  
1261 1250
void avcodec_init(void)
1262 1251
{
1263 1252
    static int inited = 0;
......
1267 1256
    inited = 1;
1268 1257

  
1269 1258
    dsputil_static_init();
1270
    init_crcs();
1271 1259
}
1272 1260

  
1273 1261
void avcodec_flush_buffers(AVCodecContext *avctx)

Also available in: Unified diff