diff mbox series

[FFmpeg-devel,2/2] avfilter/ccfifo: Improve included headers

Message ID AS8P250MB07444D215606341CF07397298F412@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 1a52cbd40482102c9ac9f63ab809f1336e91675a
Headers show
Series [FFmpeg-devel,1/2] avfilter/ccfifo: Inline trivial functions | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Feb. 3, 2024, 1:38 p.m. UTC
We don't need to include fifo.h, because we don't need AVFifo
as a complete type. Also add the other used headers directly.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavfilter/ccfifo.c |  1 +
 libavfilter/ccfifo.h | 10 ++++++----
 2 files changed, 7 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/ccfifo.c b/libavfilter/ccfifo.c
index 29108822be..d76dbff149 100644
--- a/libavfilter/ccfifo.c
+++ b/libavfilter/ccfifo.c
@@ -22,6 +22,7 @@ 
  */
 
 #include "ccfifo.h"
+#include "libavutil/fifo.h"
 
 #define MAX_CC_ELEMENTS 128
 
diff --git a/libavfilter/ccfifo.h b/libavfilter/ccfifo.h
index 565a837a00..d3f8a52cc1 100644
--- a/libavfilter/ccfifo.h
+++ b/libavfilter/ccfifo.h
@@ -29,15 +29,17 @@ 
 #ifndef AVFILTER_CCFIFO_H
 #define AVFILTER_CCFIFO_H
 
-#include "libavutil/avutil.h"
+#include <stddef.h>
+#include <stdint.h>
+
 #include "libavutil/frame.h"
-#include "libavutil/fifo.h"
+#include "libavutil/rational.h"
 
 #define CC_BYTES_PER_ENTRY 3
 
 typedef struct CCFifo {
-    AVFifo *cc_608_fifo;
-    AVFifo *cc_708_fifo;
+    struct AVFifo *cc_608_fifo;
+    struct AVFifo *cc_708_fifo;
     AVRational framerate;
     int expected_cc_count;
     int expected_608;