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:54:20 +0100 |
commit | 787a6156a2d887bb1d65c1233a94a61741e7af7c (patch) | |
tree | d4f24cf565ba8c5daeb09a8113118e7999bc47e8 | |
parent | 0989a120f1dec400c54fcb54670cb84bba36d99b (diff) | |
download | ffmpeg-787a6156a2d887bb1d65c1233a94a61741e7af7c.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 c1fbd76fec..359a36ba0c 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 |