aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/demux.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-08-02 12:15:42 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-08-05 09:40:06 +0200
commit76f244b84e6ce559546a6ab46773266ace2cfb3b (patch)
treed6cc120d4dd0f21b910b0987c745c624fb962290 /libavformat/demux.c
parentabc6a4a6bc460f99ff046e8bd831a7f023630184 (diff)
downloadffmpeg-76f244b84e6ce559546a6ab46773266ace2cfb3b.tar.gz
avformat/internal: Use forward declaration for AVCodecDescriptor
This avoids including lavc/codec_desc.h everywhere and thereby forces users to include it directly instead of lazily and potentially unknowingly relying on indirect inclusions. Also add the proper inclusion to libavformat/demux.c, one of the two files that actually use the new field. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/demux.c')
-rw-r--r--libavformat/demux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/demux.c b/libavformat/demux.c
index 1ef297d5e7..b218f64574 100644
--- a/libavformat/demux.c
+++ b/libavformat/demux.c
@@ -36,6 +36,7 @@
#include "libavcodec/avcodec.h"
#include "libavcodec/bsf.h"
+#include "libavcodec/codec_desc.h"
#include "libavcodec/internal.h"
#include "libavcodec/packet_internal.h"
#include "libavcodec/raw.h"