Skip to content

Commit 1a52cbd

Browse files
committed
avfilter/ccfifo: Improve included headers
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 <[email protected]>
1 parent 9b67c5a commit 1a52cbd

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

libavfilter/ccfifo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
*/
2323

2424
#include "ccfifo.h"
25+
#include "libavutil/fifo.h"
2526

2627
#define MAX_CC_ELEMENTS 128
2728

libavfilter/ccfifo.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,17 @@
2929
#ifndef AVFILTER_CCFIFO_H
3030
#define AVFILTER_CCFIFO_H
3131

32-
#include "libavutil/avutil.h"
32+
#include <stddef.h>
33+
#include <stdint.h>
34+
3335
#include "libavutil/frame.h"
34-
#include "libavutil/fifo.h"
36+
#include "libavutil/rational.h"
3537

3638
#define CC_BYTES_PER_ENTRY 3
3739

3840
typedef struct CCFifo {
39-
AVFifo *cc_608_fifo;
40-
AVFifo *cc_708_fifo;
41+
struct AVFifo *cc_608_fifo;
42+
struct AVFifo *cc_708_fifo;
4143
AVRational framerate;
4244
int expected_cc_count;
4345
int expected_608;

0 commit comments

Comments
 (0)