summaryrefslogtreecommitdiff
path: root/libavformat/av1dec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-21 03:03:07 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-26 03:02:50 +0200
commit2b41463b8706638b9aaf967655f95ddc195c32eb (patch)
tree897614a7fbf0490d7e3eaa7f1cb389693fd48194 /libavformat/av1dec.c
parenta02a0e8db492ae91672449ac3be8ff084a903402 (diff)
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 'libavformat/av1dec.c')
-rw-r--r--libavformat/av1dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/av1dec.c b/libavformat/av1dec.c
index 350f5360d5..d4b430af7e 100644
--- a/libavformat/av1dec.c
+++ b/libavformat/av1dec.c
@@ -19,11 +19,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "config.h"
#include "config_components.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
+#include "libavcodec/avcodec.h"
#include "libavcodec/av1_parse.h"
#include "libavcodec/bsf.h"
#include "avformat.h"