aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-25 01:30:37 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-31 00:08:43 +0100
commit790f793844390ece526ff654dc1bdddff5f5b4e8 (patch)
tree3545028e84a0e74a21df31d3cf398ed9284aade3 /libavdevice
parentb616be1649f9a32411a3c5b62afe1d73f5a71ed0 (diff)
downloadffmpeg-790f793844390ece526ff654dc1bdddff5f5b4e8.tar.gz
avutil/common: Don't auto-include mem.h
There are lots of files that don't need it: The number of object files that actually need it went down from 2011 to 884 here. Keep it for external users in order to not cause breakages. Also improve the other headers a bit while just at it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/alsa.c1
-rw-r--r--libavdevice/android_camera.c1
-rw-r--r--libavdevice/audiotoolbox.m1
-rw-r--r--libavdevice/avdevice.c1
-rw-r--r--libavdevice/avfoundation.m1
-rw-r--r--libavdevice/bktr.c1
-rw-r--r--libavdevice/caca.c1
-rw-r--r--libavdevice/decklink_common.h1
-rw-r--r--libavdevice/dshow_enummediatypes.c1
-rw-r--r--libavdevice/dshow_pin.c1
-rw-r--r--libavdevice/fbdev_common.c1
-rw-r--r--libavdevice/gdigrab.c1
-rw-r--r--libavdevice/iec61883.c1
-rw-r--r--libavdevice/jack.c1
-rw-r--r--libavdevice/kmsgrab.c1
-rw-r--r--libavdevice/opengl_enc.c1
-rw-r--r--libavdevice/sdl2.c5
-rw-r--r--libavdevice/sndio.c2
-rw-r--r--libavdevice/utils.c1
-rw-r--r--libavdevice/v4l2.c1
-rw-r--r--libavdevice/vfwcap.c1
-rw-r--r--libavdevice/xcbgrab.c1
-rw-r--r--libavdevice/xv.c1
23 files changed, 23 insertions, 5 deletions
diff --git a/libavdevice/alsa.c b/libavdevice/alsa.c
index b055f6c1a6..d62ccc09c6 100644
--- a/libavdevice/alsa.c
+++ b/libavdevice/alsa.c
@@ -34,6 +34,7 @@
#include "avdevice.h"
#include "libavutil/avassert.h"
#include "libavutil/channel_layout.h"
+#include "libavutil/mem.h"
#include "alsa.h"
diff --git a/libavdevice/android_camera.c b/libavdevice/android_camera.c
index 3aa8597c63..5de44e6d86 100644
--- a/libavdevice/android_camera.c
+++ b/libavdevice/android_camera.c
@@ -39,6 +39,7 @@
#include "libavutil/display.h"
#include "libavutil/imgutils.h"
#include "libavutil/log.h"
+#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixfmt.h"
diff --git a/libavdevice/audiotoolbox.m b/libavdevice/audiotoolbox.m
index 3bd707f236..7d95c34593 100644
--- a/libavdevice/audiotoolbox.m
+++ b/libavdevice/audiotoolbox.m
@@ -28,6 +28,7 @@
#import <AudioToolbox/AudioToolbox.h>
#include <pthread.h>
+#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavformat/internal.h"
#include "libavformat/mux.h"
diff --git a/libavdevice/avdevice.c b/libavdevice/avdevice.c
index cd7b03ef48..5712fa47cf 100644
--- a/libavdevice/avdevice.c
+++ b/libavdevice/avdevice.c
@@ -17,6 +17,7 @@
*/
#include "libavutil/avassert.h"
+#include "libavutil/mem.h"
#include "avdevice.h"
#include "internal.h"
#include "libavformat/demux.h"
diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
index d9b17ccdae..e558ad7d90 100644
--- a/libavdevice/avfoundation.m
+++ b/libavdevice/avfoundation.m
@@ -29,6 +29,7 @@
#include <pthread.h>
#include "libavutil/channel_layout.h"
+#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
#include "libavutil/opt.h"
#include "libavutil/avstring.h"
diff --git a/libavdevice/bktr.c b/libavdevice/bktr.c
index ac5b534868..eed75a9a92 100644
--- a/libavdevice/bktr.c
+++ b/libavdevice/bktr.c
@@ -29,6 +29,7 @@
#include "libavutil/file_open.h"
#include "libavutil/internal.h"
#include "libavutil/log.h"
+#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/time.h"
diff --git a/libavdevice/caca.c b/libavdevice/caca.c
index c3b2329758..42cceccf38 100644
--- a/libavdevice/caca.c
+++ b/libavdevice/caca.c
@@ -19,6 +19,7 @@
*/
#include <caca.h>
+#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavformat/mux.h"
diff --git a/libavdevice/decklink_common.h b/libavdevice/decklink_common.h
index 34ab1b9670..c54a635876 100644
--- a/libavdevice/decklink_common.h
+++ b/libavdevice/decklink_common.h
@@ -30,6 +30,7 @@
#endif
extern "C" {
+#include "libavutil/mem.h"
#include "libavcodec/packet_internal.h"
#include "libavfilter/ccfifo.h"
}
diff --git a/libavdevice/dshow_enummediatypes.c b/libavdevice/dshow_enummediatypes.c
index 4cb7057e17..64a236cc12 100644
--- a/libavdevice/dshow_enummediatypes.c
+++ b/libavdevice/dshow_enummediatypes.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/mem.h"
#include "dshow_capture.h"
DECLARE_QUERYINTERFACE(enummediatypes, DShowEnumMediaTypes,
diff --git a/libavdevice/dshow_pin.c b/libavdevice/dshow_pin.c
index f846b68918..baa001b5dd 100644
--- a/libavdevice/dshow_pin.c
+++ b/libavdevice/dshow_pin.c
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavutil/mem.h"
#include "dshow_capture.h"
#include <stddef.h>
diff --git a/libavdevice/fbdev_common.c b/libavdevice/fbdev_common.c
index 2c70abb1f0..d8b99614d3 100644
--- a/libavdevice/fbdev_common.c
+++ b/libavdevice/fbdev_common.c
@@ -27,6 +27,7 @@
#include "fbdev_common.h"
#include "libavutil/common.h"
#include "libavutil/file_open.h"
+#include "libavutil/mem.h"
#include "avdevice.h"
struct rgb_pixfmt_map_entry {
diff --git a/libavdevice/gdigrab.c b/libavdevice/gdigrab.c
index 58e876ea9e..c91661c556 100644
--- a/libavdevice/gdigrab.c
+++ b/libavdevice/gdigrab.c
@@ -31,6 +31,7 @@
#include "config.h"
#include "libavformat/demux.h"
#include "libavformat/internal.h"
+#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include "libavutil/wchar_filename.h"
diff --git a/libavdevice/iec61883.c b/libavdevice/iec61883.c
index 689bcc81d5..670e29aa30 100644
--- a/libavdevice/iec61883.c
+++ b/libavdevice/iec61883.c
@@ -33,6 +33,7 @@
#include "libavformat/demux.h"
#include "libavformat/dv.h"
#include "libavformat/mpegts.h"
+#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "avdevice.h"
diff --git a/libavdevice/jack.c b/libavdevice/jack.c
index 40f2af5ccc..d52bb06822 100644
--- a/libavdevice/jack.c
+++ b/libavdevice/jack.c
@@ -27,6 +27,7 @@
#include "libavutil/internal.h"
#include "libavutil/log.h"
#include "libavutil/fifo.h"
+#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include "libavformat/avformat.h"
diff --git a/libavdevice/kmsgrab.c b/libavdevice/kmsgrab.c
index bf6341e9fd..3d15754f3b 100644
--- a/libavdevice/kmsgrab.c
+++ b/libavdevice/kmsgrab.c
@@ -36,6 +36,7 @@
#include "libavutil/hwcontext_drm.h"
#include "libavutil/internal.h"
#include "libavutil/mathematics.h"
+#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/pixfmt.h"
#include "libavutil/pixdesc.h"
diff --git a/libavdevice/opengl_enc.c b/libavdevice/opengl_enc.c
index 69de6fad03..6f7a30ff9e 100644
--- a/libavdevice/opengl_enc.c
+++ b/libavdevice/opengl_enc.c
@@ -50,6 +50,7 @@
#include "libavutil/common.h"
#include "libavutil/frame.h"
+#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
diff --git a/libavdevice/sdl2.c b/libavdevice/sdl2.c
index ec3c3d19b5..779c8e08b0 100644
--- a/libavdevice/sdl2.c
+++ b/libavdevice/sdl2.c
@@ -26,13 +26,10 @@
#include <SDL.h>
#include <SDL_thread.h>
-#include "libavutil/avstring.h"
#include "libavutil/imgutils.h"
+#include "libavutil/mem.h"
#include "libavutil/opt.h"
-#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
-#include "libavutil/time.h"
-#include "avdevice.h"
#include "libavformat/mux.h"
typedef struct {
diff --git a/libavdevice/sndio.c b/libavdevice/sndio.c
index 46f287588d..1a4f20344c 100644
--- a/libavdevice/sndio.c
+++ b/libavdevice/sndio.c
@@ -22,7 +22,7 @@
#include <stdint.h>
#include <sndio.h>
-#include "avdevice.h"
+#include "libavutil/mem.h"
#include "libavdevice/sndio.h"
diff --git a/libavdevice/utils.c b/libavdevice/utils.c
index c72a839dfa..74574715ef 100644
--- a/libavdevice/utils.c
+++ b/libavdevice/utils.c
@@ -17,6 +17,7 @@
*/
#include "internal.h"
+#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavformat/avformat.h"
#include "libavformat/demux.h"
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 51291246b3..3706582bc6 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -35,6 +35,7 @@
#include "libavutil/avassert.h"
#include "libavutil/avstring.h"
#include "libavutil/imgutils.h"
+#include "libavutil/mem.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "libavutil/time.h"
diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
index dd077dd08c..1fda90efa1 100644
--- a/libavdevice/vfwcap.c
+++ b/libavdevice/vfwcap.c
@@ -21,6 +21,7 @@
#include "libavutil/internal.h"
#include "libavutil/log.h"
+#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c
index b2ff1f9828..2e6b118d8c 100644
--- a/libavdevice/xcbgrab.c
+++ b/libavdevice/xcbgrab.c
@@ -40,6 +40,7 @@
#include "libavutil/internal.h"
#include "libavutil/mathematics.h"
+#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
#include "libavutil/time.h"
diff --git a/libavdevice/xv.c b/libavdevice/xv.c
index cba933ef17..d1bc4e8d69 100644
--- a/libavdevice/xv.c
+++ b/libavdevice/xv.c
@@ -33,6 +33,7 @@
#include <sys/shm.h>
#include "libavutil/frame.h"
+#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "libavutil/imgutils.h"