---
put_bits does not use any mathops functions, but ac3 needs
the header somewhere.
Vittorio

 libavcodec/ac3enc_template.c | 2 ++
 libavcodec/put_bits.h        | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/libavcodec/ac3enc_template.c b/libavcodec/ac3enc_template.c
index 1b88726..59e15b1 100644
--- a/libavcodec/ac3enc_template.c
+++ b/libavcodec/ac3enc_template.c
@@ -30,6 +30,8 @@
 
 #include "libavutil/internal.h"
 
+#include "mathops.h"
+
 /* prototypes for static functions in ac3enc_fixed.c and ac3enc_float.c */
 
 static void scale_coefficients(AC3EncodeContext *s);
diff --git a/libavcodec/put_bits.h b/libavcodec/put_bits.h
index e3412cb..0160d49 100644
--- a/libavcodec/put_bits.h
+++ b/libavcodec/put_bits.h
@@ -26,6 +26,8 @@
 #ifndef AVCODEC_PUT_BITS_H
 #define AVCODEC_PUT_BITS_H
 
+#include "config.h"
+
 #include <stdint.h>
 #include <stdlib.h>
 #include <assert.h>
@@ -34,8 +36,6 @@
 #include "libavutil/common.h"
 #include "libavutil/intreadwrite.h"
 #include "libavutil/log.h"
-#include "mathops.h"
-#include "config.h"
 
 typedef struct PutBitContext {
     uint32_t bit_buf;
-- 
1.8.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to