diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-25 01:30:37 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-03-31 00:08:43 +0100 |
commit | 790f793844390ece526ff654dc1bdddff5f5b4e8 (patch) | |
tree | 3545028e84a0e74a21df31d3cf398ed9284aade3 /tools | |
parent | b616be1649f9a32411a3c5b62afe1d73f5a71ed0 (diff) | |
download | ffmpeg-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 'tools')
-rw-r--r-- | tools/crypto_bench.c | 1 | ||||
-rw-r--r-- | tools/enc_recon_frame_test.c | 1 | ||||
-rw-r--r-- | tools/ismindex.c | 1 | ||||
-rw-r--r-- | tools/probetest.c | 1 | ||||
-rw-r--r-- | tools/sidxindex.c | 1 | ||||
-rw-r--r-- | tools/target_bsf_fuzzer.c | 1 | ||||
-rw-r--r-- | tools/target_dec_fuzzer.c | 1 | ||||
-rw-r--r-- | tools/target_dem_fuzzer.c | 1 | ||||
-rw-r--r-- | tools/target_sws_fuzzer.c | 1 | ||||
-rw-r--r-- | tools/uncoded_frame.c | 1 |
10 files changed, 10 insertions, 0 deletions
diff --git a/tools/crypto_bench.c b/tools/crypto_bench.c index 0aff4ea784..45046a0a90 100644 --- a/tools/crypto_bench.c +++ b/tools/crypto_bench.c @@ -32,6 +32,7 @@ #include "libavutil/avstring.h" #include "libavutil/crc.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/timer.h" #ifndef AV_READ_TIME diff --git a/tools/enc_recon_frame_test.c b/tools/enc_recon_frame_test.c index a8e152bf44..c099beb3f4 100644 --- a/tools/enc_recon_frame_test.c +++ b/tools/enc_recon_frame_test.c @@ -32,6 +32,7 @@ #include "libavutil/error.h" #include "libavutil/frame.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavformat/avformat.h" diff --git a/tools/ismindex.c b/tools/ismindex.c index 39b5378190..6fe68d8a79 100644 --- a/tools/ismindex.c +++ b/tools/ismindex.c @@ -52,6 +52,7 @@ #include "libavformat/os_support.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" static int usage(const char *argv0, int ret) { diff --git a/tools/probetest.c b/tools/probetest.c index e742d598b1..a8ce404792 100644 --- a/tools/probetest.c +++ b/tools/probetest.c @@ -24,6 +24,7 @@ #include "libavformat/demux.h" #include "libavcodec/put_bits.h" #include "libavutil/lfg.h" +#include "libavutil/mem.h" #include "libavutil/timer.h" #define MAX_FORMATS 1000 //this must be larger than the number of formats diff --git a/tools/sidxindex.c b/tools/sidxindex.c index 88aea6bcb9..3e43d95e02 100644 --- a/tools/sidxindex.c +++ b/tools/sidxindex.c @@ -25,6 +25,7 @@ #include "libavutil/avstring.h" #include "libavutil/intreadwrite.h" #include "libavutil/mathematics.h" +#include "libavutil/mem.h" static int usage(const char *argv0, int ret) { diff --git a/tools/target_bsf_fuzzer.c b/tools/target_bsf_fuzzer.c index 76e3b89cf1..44a4d1467d 100644 --- a/tools/target_bsf_fuzzer.c +++ b/tools/target_bsf_fuzzer.c @@ -18,6 +18,7 @@ #include "config.h" #include "libavutil/imgutils.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavcodec/avcodec.h" diff --git a/tools/target_dec_fuzzer.c b/tools/target_dec_fuzzer.c index 8d19988999..a6e6b2f27f 100644 --- a/tools/target_dec_fuzzer.c +++ b/tools/target_dec_fuzzer.c @@ -51,6 +51,7 @@ #include "libavutil/cpu.h" #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavcodec/avcodec.h" #include "libavcodec/bytestream.h" diff --git a/tools/target_dem_fuzzer.c b/tools/target_dem_fuzzer.c index fe69eb9be0..8e96fad7f8 100644 --- a/tools/target_dem_fuzzer.c +++ b/tools/target_dem_fuzzer.c @@ -19,6 +19,7 @@ #include "config.h" #include "libavutil/avassert.h" #include "libavutil/avstring.h" +#include "libavutil/mem.h" #include "libavcodec/avcodec.h" #include "libavcodec/bytestream.h" diff --git a/tools/target_sws_fuzzer.c b/tools/target_sws_fuzzer.c index 6d9d15da25..fd8314cae1 100644 --- a/tools/target_sws_fuzzer.c +++ b/tools/target_sws_fuzzer.c @@ -24,6 +24,7 @@ #include "libavutil/cpu.h" #include "libavutil/imgutils.h" #include "libavutil/intreadwrite.h" +#include "libavutil/mem.h" #include "libavutil/opt.h" #include "libavcodec/bytestream.h" diff --git a/tools/uncoded_frame.c b/tools/uncoded_frame.c index edea2367c4..447bfc8b0d 100644 --- a/tools/uncoded_frame.c +++ b/tools/uncoded_frame.c @@ -2,6 +2,7 @@ #include <stdlib.h> #include <string.h> #include "libavutil/avassert.h" +#include "libavutil/mem.h" #include "libavdevice/avdevice.h" #include "libavfilter/avfilter.h" #include "libavfilter/buffersink.h" |