diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-13 15:42:28 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-15 14:48:07 +0100 |
commit | 1ac5a29b2e5ddeae068deb9d6e0e803a91941d4d (patch) | |
tree | 3770dce89381cc3ae4a14473aba87f61f76f3973 | |
parent | e5cfc8fdad901c9487fe896421972852f38bcf5b (diff) | |
download | ffmpeg-1ac5a29b2e5ddeae068deb9d6e0e803a91941d4d.tar.gz |
imc: fix order of operations in coefficients read
Reported-by: Ruoyu <liangry@ucweb.com>
-rw-r--r-- | libavcodec/imc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/imc.c b/libavcodec/imc.c index 41ca8c8ec8..500f56408d 100644 --- a/libavcodec/imc.c +++ b/libavcodec/imc.c @@ -873,14 +873,14 @@ static int imc_decode_block(AVCodecContext *avctx, IMCContext *q, int ch) flag = get_bits1(&q->gb); if (stream_format_code & 0x1) - imc_decode_level_coefficients_raw(q, chctx->levlCoeffBuf, - chctx->flcoeffs1, chctx->flcoeffs2); - else if (stream_format_code & 0x1) imc_read_level_coeffs_raw(q, stream_format_code, chctx->levlCoeffBuf); else imc_read_level_coeffs(q, stream_format_code, chctx->levlCoeffBuf); - if (stream_format_code & 0x4) + if (stream_format_code & 0x1) + imc_decode_level_coefficients_raw(q, chctx->levlCoeffBuf, + chctx->flcoeffs1, chctx->flcoeffs2); + else if (stream_format_code & 0x4) imc_decode_level_coefficients(q, chctx->levlCoeffBuf, chctx->flcoeffs1, chctx->flcoeffs2); else |