1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/msmpeg4dec: Remove redundant check

Since d50635cd24 the
dct_unquantize_h263_intra functions have set the number of
coefficients to 63 in case of ac_pred, so ff_msmpeg4_decode_block()
doesn't have to bump it on its own.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-02-25 21:51:20 +01:00
parent 18fc118f65
commit 2de9168b56

View File

@ -802,9 +802,6 @@ int ff_msmpeg4_decode_block(MpegEncContext * s, int16_t * block,
if (s->mb_intra) { if (s->mb_intra) {
not_coded: not_coded:
ff_mpeg4_pred_ac(s, block, n, dc_pred_dir); ff_mpeg4_pred_ac(s, block, n, dc_pred_dir);
if (s->ac_pred) {
i = 63; /* XXX: not optimal */
}
} }
s->block_last_index[n] = i; s->block_last_index[n] = i;