[FFmpeg-devel] [PATCH 01/10] aacenc_is: Make calc_is_encoding_err static
Timothy Gu
timothygu99 at gmail.com
Sat Aug 22 03:21:34 CEST 2015
It's not used anywhere else.
---
libavcodec/aacenc_is.c | 10 +++++++++-
libavcodec/aacenc_is.h | 11 -----------
2 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/libavcodec/aacenc_is.c b/libavcodec/aacenc_is.c
index 4ae1054..2a0ed86 100644
--- a/libavcodec/aacenc_is.c
+++ b/libavcodec/aacenc_is.c
@@ -30,7 +30,15 @@
#include "aacenc_is.h"
#include "aacenc_quantization.h"
-struct is_error calc_is_encoding_err(AACEncContext *s, ChannelElement *cpe,
+struct is_error {
+ int pass; /* 1 if dist2 <= dist1 */
+ int phase; /* -1 or +1 */
+ float error; /* fabs(dist1 - dist2) */
+ float dist1; /* From original coeffs */
+ float dist2; /* From IS'd coeffs */
+};
+
+static struct is_error calc_is_encoding_err(AACEncContext *s, ChannelElement *cpe,
int start, int w, int g, float ener0,
float ener1, float ener01, int phase)
{
diff --git a/libavcodec/aacenc_is.h b/libavcodec/aacenc_is.h
index abb9b32..e213ef0 100644
--- a/libavcodec/aacenc_is.h
+++ b/libavcodec/aacenc_is.h
@@ -31,17 +31,6 @@
/** Frequency in Hz for lower limit of intensity stereo **/
#define INT_STEREO_LOW_LIMIT 6100
-struct is_error {
- int pass; /* 1 if dist2 <= dist1 */
- int phase; /* -1 or +1 */
- float error; /* fabs(dist1 - dist2) */
- float dist1; /* From original coeffs */
- float dist2; /* From IS'd coeffs */
-};
-
-struct is_error calc_is_encoding_err(AACEncContext *s, ChannelElement *cpe,
- int start, int g, int w, float ener0,
- float ener1, float ener01, int phase);
void search_for_is(AACEncContext *s, AVCodecContext *avctx, ChannelElement *cpe);
#endif /* AVCODEC_AACENC_INTENSITY_STEREO_H */
--
1.9.1
More information about the ffmpeg-devel
mailing list