Mercurial > libavcodec.hg
changeset 6654:603c780be9ff libavcodec
Do not pass dct_block to vlc_decode_block().
The function uses dct_block from the context anyways.
author | ramiro |
---|---|
date | Sat, 19 Apr 2008 13:03:12 +0000 |
parents | 4421d9c976d0 |
children | 22cca5d3173a |
files | mimic.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mimic.c Sat Apr 19 12:34:48 2008 +0000 +++ b/mimic.c Sat Apr 19 13:03:12 2008 +0000 @@ -157,9 +157,9 @@ -67, 67, -66, 66, -65, 65, -64, 64, }, }; -static int vlc_decode_block(MimicContext *ctx, DCTELEM *block, int num_coeffs, - int qscale) +static int vlc_decode_block(MimicContext *ctx, int num_coeffs, int qscale) { + DCTELEM *block = ctx->dct_block; unsigned int pos; memset(block, 0, 64 * sizeof(DCTELEM)); @@ -227,8 +227,7 @@ * Chroma planes don't use backreferences. */ if(is_chroma || is_iframe || !get_bits1(&ctx->gb)) { - if(!vlc_decode_block(ctx, ctx->dct_block, - num_coeffs, qscale)) + if(!vlc_decode_block(ctx, num_coeffs, qscale)) return 0; ctx->dsp.idct_put(dst, stride, ctx->dct_block); } else {