@subject

Best regards
Maxim
>From f3367f63e06ab0161671fedc907b8445877b48d2 Mon Sep 17 00:00:00 2001
From: Maxim Poliakovski <max_p...@gmx.de>
Date: Thu, 10 Oct 2013 09:59:03 +0200
Subject: [PATCH 1/2] atrac3: Remove unused gain compensation tables

Patch by Diego Biurrun.
---
 libavcodec/atrac3.c |   10 ----------
 1 file changed, 10 deletions(-)

diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index 5378d95..8380c17 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -114,9 +114,6 @@ typedef struct ATRAC3Context {
 static DECLARE_ALIGNED(32, float, mdct_window)[MDCT_SIZE];
 static VLC_TYPE atrac3_vlc_table[4096][2];
 static VLC   spectral_coeff_tab[7];
-static float gain_tab1[16];
-static float gain_tab2[31];
-
 
 /**
  * Regular 512 points IMDCT without overlapping, with the exception of the
@@ -792,13 +789,6 @@ static av_cold void atrac3_init_static_data(AVCodec *codec)
                  huff_bits[i],  1, 1,
                  huff_codes[i], 1, 1, INIT_VLC_USE_NEW_STATIC);
     }
-
-    /* Generate gain tables */
-    for (i = 0; i < 16; i++)
-        gain_tab1[i] = powf(2.0, (4 - i));
-
-    for (i = -15; i < 16; i++)
-        gain_tab2[i + 15] = powf(2.0, i * -0.125);
 }
 
 static av_cold int atrac3_decode_init(AVCodecContext *avctx)
-- 
1.7.9.5

>From cc8ad57a70895115de22f2500f52fdaab2cd5579 Mon Sep 17 00:00:00 2001
From: Maxim Poliakovski <max_p...@gmx.de>
Date: Thu, 10 Oct 2013 10:07:24 +0200
Subject: [PATCH 2/2] atrac3: Better name for imdct window initialization

Patch by Diego Biurrun.
---
 libavcodec/atrac3.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index 8380c17..76fd0d1 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -170,7 +170,7 @@ static int decode_bytes(const uint8_t *input, uint8_t *out, int bytes)
     return off;
 }
 
-static av_cold void init_atrac3_window(void)
+static av_cold void init_imdct_window(void)
 {
     int i, j;
 
@@ -777,7 +777,7 @@ static av_cold void atrac3_init_static_data(AVCodec *codec)
 {
     int i;
 
-    init_atrac3_window();
+    init_imdct_window();
     ff_atrac_generate_tables();
 
     /* Initialize the VLC tables. */
-- 
1.7.9.5

_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to