Commit 1ac5a29b authored by Vittorio Giovara's avatar Vittorio Giovara

imc: fix order of operations in coefficients read

Reported-by: 's avatarRuoyu <liangry@ucweb.com>
parent e5cfc8fd
...@@ -873,14 +873,14 @@ static int imc_decode_block(AVCodecContext *avctx, IMCContext *q, int ch) ...@@ -873,14 +873,14 @@ static int imc_decode_block(AVCodecContext *avctx, IMCContext *q, int ch)
flag = get_bits1(&q->gb); flag = get_bits1(&q->gb);
if (stream_format_code & 0x1) 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); imc_read_level_coeffs_raw(q, stream_format_code, chctx->levlCoeffBuf);
else else
imc_read_level_coeffs(q, stream_format_code, chctx->levlCoeffBuf); 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, imc_decode_level_coefficients(q, chctx->levlCoeffBuf,
chctx->flcoeffs1, chctx->flcoeffs2); chctx->flcoeffs1, chctx->flcoeffs2);
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment