diff mbox series

[FFmpeg-devel,2/4] avcodec/siren: decode_vector: remove unused parameter

Message ID 41c39184791971beda9e88257d1546ca1c6ac903.1631006828.git.pross@xvid.org
State Accepted
Commit 20f9cfb3e348043bcf77cfd82d7ba70ef00ecbe5
Headers show
Series [FFmpeg-devel,1/4] avcodec/siren: replace magic numbers with macro value
Related show

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Peter Ross Sept. 7, 2021, 9:27 a.m. UTC
---
Looks to me like a cut and paste error.

 libavcodec/siren.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Paul B Mahol Sept. 7, 2021, 9:33 a.m. UTC | #1
lgtm
diff mbox series

Patch

diff --git a/libavcodec/siren.c b/libavcodec/siren.c
index 93a2d14d25..ccc69aaf40 100644
--- a/libavcodec/siren.c
+++ b/libavcodec/siren.c
@@ -568,7 +568,7 @@  static int get_dw(SirenContext *s)
 }
 
 static int decode_vector(SirenContext *s, int number_of_regions,
-                         int number_of_available_bits, float *decoder_standard_deviation,
+                         float *decoder_standard_deviation,
                          int *power_categories, float *coefs, int scale_factor)
 {
     GetBitContext *gb = &s->gb;
@@ -731,7 +731,7 @@  static int siren_decode(AVCodecContext *avctx, void *data,
     for (int i = 0; i < rate_control; i++)
         s->power_categories[s->category_balance[i]]++;
 
-    ret = decode_vector(s, s->number_of_regions, get_bits_left(gb),
+    ret = decode_vector(s, s->number_of_regions,
                         s->decoder_standard_deviation, s->power_categories,
                         s->imdct_in, s->scale_factor);
     if (ret < 0 && !s->microsoft)