[FFmpeg-cvslog] ac3enc: remove empty ac3_float function that is never called

Justin Ruggles git at videolan.org
Tue Jun 14 05:09:42 CEST 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Fri Jun 10 15:17:55 2011 -0400| [38c304addd978410956c8ff02ea83a6ffb9a606a] | committer: Justin Ruggles

ac3enc: remove empty ac3_float function that is never called

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

 libavcodec/ac3enc.c       |    1 -
 libavcodec/ac3enc.h       |    1 -
 libavcodec/ac3enc_float.c |   10 ----------
 3 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index 1147ed1..78e8165 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -2363,7 +2363,6 @@ av_cold int ff_ac3_encode_init(AVCodecContext *avctx)
         s->mdct_end                     = ff_ac3_float_mdct_end;
         s->mdct_init                    = ff_ac3_float_mdct_init;
         s->apply_window                 = ff_ac3_float_apply_window;
-        s->normalize_samples            = ff_ac3_float_normalize_samples;
         s->scale_coefficients           = ff_ac3_float_scale_coefficients;
         s->deinterleave_input_samples   = ff_ac3_float_deinterleave_input_samples;
         s->apply_mdct                   = ff_ac3_float_apply_mdct;
diff --git a/libavcodec/ac3enc.h b/libavcodec/ac3enc.h
index e9d7e0a..1d17484 100644
--- a/libavcodec/ac3enc.h
+++ b/libavcodec/ac3enc.h
@@ -269,7 +269,6 @@ void ff_ac3_float_apply_window(DSPContext *dsp, SampleType *output,
                                const SampleType *window, unsigned int len);
 
 int ff_ac3_fixed_normalize_samples(AC3EncodeContext *s);
-int ff_ac3_float_normalize_samples(AC3EncodeContext *s);
 
 void ff_ac3_fixed_scale_coefficients(AC3EncodeContext *s);
 void ff_ac3_float_scale_coefficients(AC3EncodeContext *s);
diff --git a/libavcodec/ac3enc_float.c b/libavcodec/ac3enc_float.c
index 9c7e88e..43fbb95 100644
--- a/libavcodec/ac3enc_float.c
+++ b/libavcodec/ac3enc_float.c
@@ -91,16 +91,6 @@ void ff_ac3_float_apply_window(DSPContext *dsp, float *output,
 
 
 /**
- * Normalize the input samples to use the maximum available precision.
- */
-int ff_ac3_float_normalize_samples(AC3EncodeContext *s)
-{
-    /* Normalization is not needed for floating-point samples, so just return 0 */
-    return 0;
-}
-
-
-/**
  * Scale MDCT coefficients from float to 24-bit fixed-point.
  */
 void ff_ac3_float_scale_coefficients(AC3EncodeContext *s)



More information about the ffmpeg-cvslog mailing list