aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-02 01:08:32 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-01-25 14:52:55 +0100
commit12d0bb382b7f8f67981ec61aad1ce4f6840ab2dc (patch)
treedafc26101edd9af92e68180d4bf878d48a65e03e /libavcodec
parent1ea13f949a55ab3cb08144bccd06af1e40fef3d3 (diff)
downloadffmpeg-12d0bb382b7f8f67981ec61aad1ce4f6840ab2dc.tar.gz
avcodec/ituh263enc: Remove unused function parameter
Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ituh263enc.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/libavcodec/ituh263enc.c b/libavcodec/ituh263enc.c
index b1b78218a5..e1debcf63b 100644
--- a/libavcodec/ituh263enc.c
+++ b/libavcodec/ituh263enc.c
@@ -713,8 +713,7 @@ static av_cold void init_mv_penalty_and_fcode(MpegEncContext *s)
}
}
-static av_cold void init_uni_h263_rl_tab(RLTable *rl, uint32_t *bits_tab,
- uint8_t *len_tab)
+static av_cold void init_uni_h263_rl_tab(const RLTable *rl, uint8_t *len_tab)
{
int slevel, run, last;
@@ -738,10 +737,9 @@ static av_cold void init_uni_h263_rl_tab(RLTable *rl, uint32_t *bits_tab,
len= rl->table_vlc[code][1];
bits=bits*2+sign; len++;
- if(code!=rl->n && len < len_tab[index]){
- if(bits_tab) bits_tab[index]= bits;
+ if (code != rl->n && len < len_tab[index])
len_tab [index]= len;
- }
+
/* ESC */
bits= rl->table_vlc[rl->n][0];
len = rl->table_vlc[rl->n][1];
@@ -749,10 +747,8 @@ static av_cold void init_uni_h263_rl_tab(RLTable *rl, uint32_t *bits_tab,
bits=bits*64+run; len+=6;
bits=bits*256+(level&0xff); len+=8;
- if(len < len_tab[index]){
- if(bits_tab) bits_tab[index]= bits;
+ if (len < len_tab[index])
len_tab [index]= len;
- }
}
}
}
@@ -768,8 +764,8 @@ av_cold void ff_h263_encode_init(MpegEncContext *s)
ff_rl_init(&ff_h263_rl_inter, ff_h263_static_rl_table_store[0]);
ff_rl_init(&ff_rl_intra_aic, ff_h263_static_rl_table_store[1]);
- init_uni_h263_rl_tab(&ff_rl_intra_aic, NULL, uni_h263_intra_aic_rl_len);
- init_uni_h263_rl_tab(&ff_h263_rl_inter , NULL, uni_h263_inter_rl_len);
+ init_uni_h263_rl_tab(&ff_rl_intra_aic, uni_h263_intra_aic_rl_len);
+ init_uni_h263_rl_tab(&ff_h263_rl_inter, uni_h263_inter_rl_len);
init_mv_penalty_and_fcode(s);
}