libavfilter API was designed in order to be clarly distinguished from the libavcodec API, including avcodec.h in avfilter.h is not going to help to stick to this principle. The inclusion of libavutil/audioconvert.h in many files was required because avcodec.h includes audioconvert.h. libavfilter/avcodec.h is where the lavc/lavfi interface should be entirely placed.
Showing the changes to libavfilter/avfiltergraph.c (1 of 11 files). Show all
Unified · Split
| @@ -26,6 +26,7 @@ · 25 unmodified lines | |||
| 26 | #include "libavutil/audioconvert.h" | 26 | #include "libavutil/audioconvert.h" |
| 27 | #include "libavutil/avassert.h" | 27 | #include "libavutil/avassert.h" |
| 28 | #include "libavutil/pixdesc.h" | 28 | #include "libavutil/pixdesc.h" |
| 29 | #include "libavcodec/avcodec.h" // avcodec_find_best_pix_fmt2() | ||
| 29 | #include "avfilter.h" | 30 | #include "avfilter.h" |
| 30 | #include "avfiltergraph.h" | 31 | #include "avfiltergraph.h" |
| 31 | #include "formats.h" | 32 | #include "formats.h" |