summaryrefslogtreecommitdiff
path: root/libavcodec/imc.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-10-13 15:42:28 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-10-15 14:48:07 +0100
commit1ac5a29b2e5ddeae068deb9d6e0e803a91941d4d (patch)
tree3770dce89381cc3ae4a14473aba87f61f76f3973 /libavcodec/imc.c
parente5cfc8fdad901c9487fe896421972852f38bcf5b (diff)
downloadffmpeg-1ac5a29b2e5ddeae068deb9d6e0e803a91941d4d.tar.gz
imc: fix order of operations in coefficients read
Reported-by: Ruoyu <liangry@ucweb.com>
Diffstat (limited to 'libavcodec/imc.c')
-rw-r--r--libavcodec/imc.c8
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