[FFmpeg-cvslog] avcodec/siren: decode_vector: remove unused parameter

Peter Ross git at videolan.org
Thu Sep 9 11:42:10 EEST 2021


ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Sat Sep  4 20:27:09 2021 +1000| [20f9cfb3e348043bcf77cfd82d7ba70ef00ecbe5] | committer: Peter Ross

avcodec/siren: decode_vector: remove unused parameter

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Peter Ross <pross at xvid.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=20f9cfb3e348043bcf77cfd82d7ba70ef00ecbe5
---

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

diff --git a/libavcodec/siren.c b/libavcodec/siren.c
index 2817c5c592..2161b29a2c 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)



More information about the ffmpeg-cvslog mailing list