internal.h does not depend on video.h (and should not depend on it) and therefore should not include video.h at all; instead all users of video.h should include it directly. Doing so also avoids unnecessary video.h inclusions in files that don't need it, like most audio filters.
Showing the changes to libavfilter/avfilter.c (1 of 60 files). Show all
Unified · Split
| @@ -43,6 +43,7 @@ · 42 unmodified lines | ||
| 43 | 43 | #include "formats.h" |
| 44 | 44 | #include "framepool.h" |
| 45 | 45 | #include "internal.h" |
| 46 | +#include "video.h" | |
| 46 | 47 | |
| 47 | 48 | static void tlog_ref(void *ctx, AVFrame *ref, int end) |
| 48 | 49 | { |