History

avcodec/ituh263dec: Only initialize ff_h263_rl_inter when needed

The H.263 decoder itself does not need max_run/max_level of this RLTable, only the MPEG-4 decoder does.

Andreas Rheinhardt committed 1 year ago

Commit 1c258b51 parent 8a356642 files · +1 −1Browse files

Unified · Split

2 files
  1. libavcodec/ituh263dec.c +0 −1
  2. libavcodec/mpeg4videodec.c +1 −0
libavcodec/ituh263dec.c+0−1
@@ -123,7 +123,6 @@ static av_cold void h263_decode_init_vlc(void) · 122 unmodified lines
123 VLC_INIT_STATIC_TABLE(ff_h263_mv_vlc, H263_MV_VLC_BITS, 33,123 VLC_INIT_STATIC_TABLE(ff_h263_mv_vlc, H263_MV_VLC_BITS, 33,
124 &ff_mvtab[0][1], 2, 1,124 &ff_mvtab[0][1], 2, 1,
125 &ff_mvtab[0][0], 2, 1, 0);125 &ff_mvtab[0][0], 2, 1, 0);
126 ff_h263_init_rl_inter();
127 VLC_INIT_RL(ff_h263_rl_inter, 554);126 VLC_INIT_RL(ff_h263_rl_inter, 554);
128 INIT_FIRST_VLC_RL(ff_rl_intra_aic, 554);127 INIT_FIRST_VLC_RL(ff_rl_intra_aic, 554);
129 VLC_INIT_STATIC_SPARSE_TABLE(h263_mbtype_b_vlc, H263_MBTYPE_B_VLC_BITS, 15,128 VLC_INIT_STATIC_SPARSE_TABLE(h263_mbtype_b_vlc, H263_MBTYPE_B_VLC_BITS, 15,
libavcodec/mpeg4videodec.c+1−0
@@ -3962,6 +3962,7 @@ static av_cold void mpeg4_init_static(void) · 3961 unmodified lines
3962 3962
3963 static uint8_t mpeg4_rl_intra_table[2][2 * MAX_RUN + MAX_LEVEL + 3];3963 static uint8_t mpeg4_rl_intra_table[2][2 * MAX_RUN + MAX_LEVEL + 3];
3964 ff_rl_init(&ff_mpeg4_rl_intra, mpeg4_rl_intra_table);3964 ff_rl_init(&ff_mpeg4_rl_intra, mpeg4_rl_intra_table);
3965 ff_h263_init_rl_inter();
3965 3966
3966 INIT_FIRST_VLC_RL(ff_mpeg4_rl_intra, 554);3967 INIT_FIRST_VLC_RL(ff_mpeg4_rl_intra, 554);
3967 VLC_INIT_RL(ff_rvlc_rl_inter, 1072);3968 VLC_INIT_RL(ff_rvlc_rl_inter, 1072);

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