comparison mimic.c @ 8042:e70975d5ff80 libavcodec

uses FF_ARRAY_ELEMS() where appropriate
author aurel
date Tue, 21 Oct 2008 21:40:24 +0000
parents e943e1409077
children 800444234375
comparison
equal deleted inserted replaced
8041:24761747ac3d 8042:e70975d5ff80
108 MimicContext *ctx = avctx->priv_data; 108 MimicContext *ctx = avctx->priv_data;
109 109
110 ctx->prev_index = 0; 110 ctx->prev_index = 0;
111 ctx->cur_index = 15; 111 ctx->cur_index = 15;
112 112
113 if(init_vlc(&ctx->vlc, 11, sizeof(huffbits)/sizeof(huffbits[0]), 113 if(init_vlc(&ctx->vlc, 11, FF_ARRAY_ELEMS(huffbits),
114 huffbits, 1, 1, huffcodes, 4, 4, 0)) { 114 huffbits, 1, 1, huffcodes, 4, 4, 0)) {
115 av_log(avctx, AV_LOG_ERROR, "error initializing vlc table\n"); 115 av_log(avctx, AV_LOG_ERROR, "error initializing vlc table\n");
116 return -1; 116 return -1;
117 } 117 }
118 dsputil_init(&ctx->dsp, avctx); 118 dsputil_init(&ctx->dsp, avctx);