History

avcodec/msmpeg4dec: Remove redundant check

Since d50635cd247e17fe16c63219b9ae80d45a8185b1 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.

Andreas Rheinhardt committed 1 year ago

Commit 2de91681 parent 18fc1181 file · +0 −3Browse files

Unified · Split

libavcodec/msmpeg4dec.c+0−3
@@ -802,9 +802,6 @@ int ff_msmpeg4_decode_block(MpegEncContext * s, int16_t * block, · 801 unmodified lines
802802 if (s->mb_intra) {
803803 not_coded:
804804 ff_mpeg4_pred_ac(s, block, n, dc_pred_dir);
805− if (s->ac_pred) {
806− i = 63; /* XXX: not optimal */
807− }
808805 }
809806 s->block_last_index[n] = i;
810807

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t