aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-07-23 14:06:58 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-07 00:42:10 +0200
commite3b355c0be85ec47ee8b3d7790ad4c4fa26827c0 (patch)
treea4cd74db661bc69b42348cd965326dffd6c2d6f4 /libavcodec
parentc3e3ea3c8846486dfe81b3761584f7c98ada9c75 (diff)
downloadffmpeg-e3b355c0be85ec47ee8b3d7790ad4c4fa26827c0.tar.gz
avutil/mem: Don't include avutil.h
It is not necessary at all. So remove it. This also breaks an inclusion cycle mem.h->avutil.h->common.h->mem.h. Reviewed-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avfft.c7
-rw-r--r--libavcodec/avpacket.c1
-rw-r--r--libavcodec/dirac_dwt.c1
-rw-r--r--libavcodec/ffjni.c1
-rw-r--r--libavcodec/iirfilter.c4
-rw-r--r--libavcodec/jpegls.c1
-rw-r--r--libavcodec/kbdwin.c2
-rw-r--r--libavcodec/mpc.c2
-rw-r--r--libavcodec/ppc/mpegaudiodsp_altivec.c2
-rw-r--r--libavcodec/tests/h264_levels.c6
10 files changed, 22 insertions, 5 deletions
diff --git a/libavcodec/avfft.c b/libavcodec/avfft.c
index d07c495022..fb635abfff 100644
--- a/libavcodec/avfft.c
+++ b/libavcodec/avfft.c
@@ -16,13 +16,14 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <stddef.h>
+#include <string.h>
+
#include "libavutil/attributes.h"
+#include "libavutil/macros.h"
#include "libavutil/mem.h"
#include "libavutil/tx.h"
#include "avfft.h"
-#include "fft.h"
-#include "rdft.h"
-#include "dct.h"
typedef struct AVTXWrapper {
AVTXContext *ctx;
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
index 5fef65e97a..9ec1feb068 100644
--- a/libavcodec/avpacket.c
+++ b/libavcodec/avpacket.c
@@ -22,6 +22,7 @@
#include <string.h>
#include "libavutil/avassert.h"
+#include "libavutil/avutil.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mathematics.h"
#include "libavutil/mem.h"
diff --git a/libavcodec/dirac_dwt.c b/libavcodec/dirac_dwt.c
index 4039899cf0..d473f64daa 100644
--- a/libavcodec/dirac_dwt.c
+++ b/libavcodec/dirac_dwt.c
@@ -21,6 +21,7 @@
#include "libavutil/attributes.h"
#include "libavutil/common.h"
+#include "libavutil/log.h"
#include "dirac_dwt.h"
#define TEMPLATE_8bit
diff --git a/libavcodec/ffjni.c b/libavcodec/ffjni.c
index 154be9ae99..e3cf24d3e2 100644
--- a/libavcodec/ffjni.c
+++ b/libavcodec/ffjni.c
@@ -25,6 +25,7 @@
#include <stdlib.h>
#include "libavutil/bprint.h"
+#include "libavutil/error.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
diff --git a/libavcodec/iirfilter.c b/libavcodec/iirfilter.c
index 903d64e8d4..727a370444 100644
--- a/libavcodec/iirfilter.c
+++ b/libavcodec/iirfilter.c
@@ -26,8 +26,12 @@
#include <math.h>
+#include "config.h"
+
#include "libavutil/attributes.h"
#include "libavutil/common.h"
+#include "libavutil/log.h"
+#include "libavutil/mem.h"
#include "iirfilter.h"
diff --git a/libavcodec/jpegls.c b/libavcodec/jpegls.c
index cc598f3c17..7b4bc30e46 100644
--- a/libavcodec/jpegls.c
+++ b/libavcodec/jpegls.c
@@ -28,6 +28,7 @@
#include <stddef.h>
#include "libavutil/internal.h"
#include "libavutil/intmath.h"
+#include "libavutil/log.h"
#include "jpegls.h"
void ff_jpegls_init_state(JLSState *state)
diff --git a/libavcodec/kbdwin.c b/libavcodec/kbdwin.c
index eacdb46774..ff7a7d614e 100644
--- a/libavcodec/kbdwin.c
+++ b/libavcodec/kbdwin.c
@@ -17,6 +17,8 @@
*/
#include "libavutil/avassert.h"
+#include "libavutil/error.h"
+#include "libavutil/libm.h"
#include "libavutil/mathematics.h"
#include "libavutil/attributes.h"
#include "libavutil/mem.h"
diff --git a/libavcodec/mpc.c b/libavcodec/mpc.c
index 6aa3e80927..46cb967cf1 100644
--- a/libavcodec/mpc.c
+++ b/libavcodec/mpc.c
@@ -27,7 +27,7 @@
*/
#include <string.h>
-#include "libavutil/intmath.h"
+#include "libavutil/common.h"
#include "mpegaudiodsp.h"
#include "mpc.h"
diff --git a/libavcodec/ppc/mpegaudiodsp_altivec.c b/libavcodec/ppc/mpegaudiodsp_altivec.c
index 6794ed0928..b065203c4e 100644
--- a/libavcodec/ppc/mpegaudiodsp_altivec.c
+++ b/libavcodec/ppc/mpegaudiodsp_altivec.c
@@ -19,6 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <string.h>
+
#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
diff --git a/libavcodec/tests/h264_levels.c b/libavcodec/tests/h264_levels.c
index 98febcc41b..af3bfe01a6 100644
--- a/libavcodec/tests/h264_levels.c
+++ b/libavcodec/tests/h264_levels.c
@@ -16,7 +16,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "libavutil/common.h"
+#include <inttypes.h>
+#include <stddef.h>
+
+#include "libavutil/log.h"
+#include "libavutil/macros.h"
#include "libavcodec/h264_levels.h"
static const struct {