summaryrefslogtreecommitdiff
path: root/libavcodec/mimic.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2008-04-19 12:28:32 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2008-04-19 12:28:32 +0000
commitc9108634c4160f5294aba0944b2b41db6ff5e59c (patch)
tree2522dba2ce06ef432d3ed4e8e28ada4ef32244d3 /libavcodec/mimic.c
parented729c356c8a0c8d4af03f2958d45988493d7682 (diff)
Rename vlc1 to vlc.
There is no vlc2, so there is no point in numbering it. Originally committed as revision 12906 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mimic.c')
-rw-r--r--libavcodec/mimic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c
index 6fa8534eb2..8c249206b5 100644
--- a/libavcodec/mimic.c
+++ b/libavcodec/mimic.c
@@ -49,7 +49,7 @@ typedef struct {
GetBitContext gb;
ScanTable scantable;
DSPContext dsp;
- VLC vlc1;
+ VLC vlc;
} MimicContext;
static const uint32_t huffcodes[] = {
@@ -109,7 +109,7 @@ static av_cold int mimic_decode_init(AVCodecContext *avctx)
ctx->prev_index = 0;
ctx->cur_index = 15;
- if(init_vlc(&ctx->vlc1, 8, sizeof(huffbits)/sizeof(huffbits[0]),
+ if(init_vlc(&ctx->vlc, 8, sizeof(huffbits)/sizeof(huffbits[0]),
huffbits, 1, 1, huffcodes, 4, 4, 0)) {
av_log(avctx, AV_LOG_ERROR, "error initializing vlc table\n");
return -1;
@@ -171,7 +171,7 @@ static int vlc_decode_block(MimicContext *ctx, DCTELEM *block, int num_coeffs,
int value;
int coeff;
- vlc = get_vlc2(&ctx->gb, ctx->vlc1.table, ctx->vlc1.bits, 4);
+ vlc = get_vlc2(&ctx->gb, ctx->vlc.table, ctx->vlc.bits, 4);
if(!vlc) /* end-of-block code */
return 1;
if(vlc == -1)
@@ -380,7 +380,7 @@ static av_cold int mimic_decode_end(AVCodecContext *avctx)
for(i = 0; i < 16; i++)
if(ctx->buf_ptrs[i].data[0])
avctx->release_buffer(avctx, &ctx->buf_ptrs[i]);
- free_vlc(&ctx->vlc1);
+ free_vlc(&ctx->vlc);
return 0;
}