diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2008-04-19 13:03:12 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2008-04-19 13:03:12 +0000 |
commit | bebfc16a31c34de59e97ebc5bd58c7c31c4b191c (patch) | |
tree | 23d3e647cdce1f3ed1dc7d6e130db90e01d17563 /libavcodec/mimic.c | |
parent | 399e46527a088018c1d4bbd4eb18febea59be028 (diff) | |
download | ffmpeg-bebfc16a31c34de59e97ebc5bd58c7c31c4b191c.tar.gz |
Do not pass dct_block to vlc_decode_block().
The function uses dct_block from the context anyways.
Originally committed as revision 12908 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mimic.c')
-rw-r--r-- | libavcodec/mimic.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/mimic.c b/libavcodec/mimic.c index 8a4fba6c0e..c30ad90274 100644 --- a/libavcodec/mimic.c +++ b/libavcodec/mimic.c @@ -157,9 +157,9 @@ const static int8_t vlcdec_lookup[9][64] = { -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 @@ static int decode(MimicContext *ctx, int quality, int num_coeffs, * 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 { |