[FFmpeg-cvslog] avfilter/internal: Don't include framepool.h, thread.h

Andreas Rheinhardt git at videolan.org
Wed Aug 4 04:17:29 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Aug  2 01:37:51 2021 +0200| [6e66e2c321b3247b81b6f8a0540d20958f570b6d] | committer: Andreas Rheinhardt

avfilter/internal: Don't include framepool.h, thread.h

They are not used by the header at all and only used by very few files;
so include the headers in their users instead of in internal.h.

Reviewed-by: Nicolas George <george at nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6e66e2c321b3247b81b6f8a0540d20958f570b6d
---

 libavfilter/audio.c    | 1 +
 libavfilter/avfilter.c | 1 +
 libavfilter/internal.h | 2 --
 libavfilter/video.c    | 1 +
 4 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavfilter/audio.c b/libavfilter/audio.c
index 5996f607b2..0deed5683b 100644
--- a/libavfilter/audio.c
+++ b/libavfilter/audio.c
@@ -25,6 +25,7 @@
 
 #include "audio.h"
 #include "avfilter.h"
+#include "framepool.h"
 #include "internal.h"
 
 #define BUFFER_ALIGN 0
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 87f04dfc57..24de8ebee3 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -41,6 +41,7 @@
 #include "avfilter.h"
 #include "filters.h"
 #include "formats.h"
+#include "framepool.h"
 #include "internal.h"
 
 #include "libavutil/ffversion.h"
diff --git a/libavfilter/internal.h b/libavfilter/internal.h
index 1bcfb830a1..a1adb8a8fe 100644
--- a/libavfilter/internal.h
+++ b/libavfilter/internal.h
@@ -27,9 +27,7 @@
 #include "libavutil/internal.h"
 #include "avfilter.h"
 #include "formats.h"
-#include "framepool.h"
 #include "framequeue.h"
-#include "thread.h"
 #include "version.h"
 #include "video.h"
 #include "libavcodec/avcodec.h"
diff --git a/libavfilter/video.c b/libavfilter/video.c
index 0771268c40..810cc87f52 100644
--- a/libavfilter/video.c
+++ b/libavfilter/video.c
@@ -28,6 +28,7 @@
 #include "libavutil/imgutils.h"
 
 #include "avfilter.h"
+#include "framepool.h"
 #include "internal.h"
 #include "video.h"
 



More information about the ffmpeg-cvslog mailing list