diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-21 03:03:07 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-09-26 03:02:50 +0200 |
commit | 2b41463b8706638b9aaf967655f95ddc195c32eb (patch) | |
tree | 897614a7fbf0490d7e3eaa7f1cb389693fd48194 /libavdevice | |
parent | a02a0e8db492ae91672449ac3be8ff084a903402 (diff) | |
download | ffmpeg-2b41463b8706638b9aaf967655f95ddc195c32eb.tar.gz |
avformat/internal: Don't include avcodec.h
The general demuxing API uses parsers and decoders. Therefore
FFStream contains pointers to AVCodecContexts and
AVCodecParserContext and lavf/internal.h includes lavc/avcodec.h.
Yet actually only a few files files really use these; and it is best
when this number stays small. Therefore this commit uses opaque
structs in lavf/internal.h for these contexts and stops including
avcodec.h.
This also avoids including lavc/codec_desc.h implicitly. All other
headers are implicitly included as now (mostly through codec.h).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/jack.c | 1 | ||||
-rw-r--r-- | libavdevice/v4l2.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/jack.c b/libavdevice/jack.c index e34eb8961c..db056d824f 100644 --- a/libavdevice/jack.c +++ b/libavdevice/jack.c @@ -29,7 +29,6 @@ #include "libavutil/fifo.h" #include "libavutil/opt.h" #include "libavutil/time.h" -#include "libavcodec/avcodec.h" #include "libavformat/avformat.h" #include "libavformat/internal.h" #include "timefilter.h" diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index be422d7c8c..5e85d1a2b3 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -38,6 +38,7 @@ #include "libavutil/parseutils.h" #include "libavutil/pixdesc.h" #include "libavutil/time.h" +#include "libavcodec/avcodec.h" #include "libavcodec/codec_desc.h" #include "libavformat/demux.h" #include "libavformat/internal.h" |