diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-03-25 20:02:23 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-04-09 15:47:45 +0200 |
commit | 2225134e7d4992eecd2be8ced90977877a138e90 (patch) | |
tree | c17ee756ccf2c6748b4078f23d15f031b781518f /fftools | |
parent | a2a09932f2c5e7ab23e6821d812439fff913f328 (diff) | |
download | ffmpeg-2225134e7d4992eecd2be8ced90977877a138e90.tar.gz |
fftools/ffmpeg: clean up #includes
Drop unneeded ctype.h and math.h.
Group all system headers together.
Sort unconditional includes alphabetically.
Group local includes by the library, sort alphabetically.
Diffstat (limited to 'fftools')
-rw-r--r-- | fftools/ffmpeg.c | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index d2789b6f5b..750ab76693 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -24,14 +24,14 @@ */ #include "config.h" -#include <ctype.h> -#include <string.h> -#include <math.h> -#include <stdlib.h> + #include <errno.h> #include <limits.h> #include <stdatomic.h> #include <stdint.h> +#include <stdlib.h> +#include <string.h> +#include <time.h> #if HAVE_IO_H #include <io.h> @@ -40,34 +40,6 @@ #include <unistd.h> #endif -#include "libavformat/avformat.h" -#include "libavdevice/avdevice.h" -#include "libswresample/swresample.h" -#include "libavutil/opt.h" -#include "libavutil/channel_layout.h" -#include "libavutil/parseutils.h" -#include "libavutil/samplefmt.h" -#include "libavutil/fifo.h" -#include "libavutil/hwcontext.h" -#include "libavutil/intreadwrite.h" -#include "libavutil/dict.h" -#include "libavutil/display.h" -#include "libavutil/mathematics.h" -#include "libavutil/pixdesc.h" -#include "libavutil/avstring.h" -#include "libavutil/libm.h" -#include "libavutil/imgutils.h" -#include "libavutil/timestamp.h" -#include "libavutil/bprint.h" -#include "libavutil/time.h" -#include "libavutil/thread.h" -#include "libavutil/threadmessage.h" -#include "libavcodec/version.h" - -# include "libavfilter/avfilter.h" -# include "libavfilter/buffersrc.h" -# include "libavfilter/buffersink.h" - #if HAVE_SYS_RESOURCE_H #include <sys/time.h> #include <sys/types.h> @@ -83,7 +55,6 @@ #include <windows.h> #endif - #if HAVE_SYS_SELECT_H #include <sys/select.h> #endif @@ -97,14 +68,43 @@ #include <conio.h> #endif -#include <time.h> +#include "libavutil/avassert.h" +#include "libavutil/avstring.h" +#include "libavutil/bprint.h" +#include "libavutil/channel_layout.h" +#include "libavutil/dict.h" +#include "libavutil/display.h" +#include "libavutil/fifo.h" +#include "libavutil/hwcontext.h" +#include "libavutil/imgutils.h" +#include "libavutil/intreadwrite.h" +#include "libavutil/libm.h" +#include "libavutil/mathematics.h" +#include "libavutil/opt.h" +#include "libavutil/parseutils.h" +#include "libavutil/pixdesc.h" +#include "libavutil/samplefmt.h" +#include "libavutil/thread.h" +#include "libavutil/threadmessage.h" +#include "libavutil/time.h" +#include "libavutil/timestamp.h" + +#include "libavcodec/version.h" + +#include "libavformat/avformat.h" + +#include "libavdevice/avdevice.h" + +#include "libswresample/swresample.h" + +#include "libavfilter/avfilter.h" +#include "libavfilter/buffersrc.h" +#include "libavfilter/buffersink.h" -#include "ffmpeg.h" #include "cmdutils.h" +#include "ffmpeg.h" #include "sync_queue.h" -#include "libavutil/avassert.h" - const char program_name[] = "ffmpeg"; const int program_birth_year = 2000; |