aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-02 12:11:59 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-07 00:30:08 +0200
commit0c6e5f321bf5c4054e8b98232692465b342b42b4 (patch)
tree54f06dd5e2fad39bf95aaae9b74acc4fa6f9e670 /libavformat/internal.h
parent4e633e51da64d35c83ae9391a2734d2fd4ef7877 (diff)
downloadffmpeg-0c6e5f321bf5c4054e8b98232692465b342b42b4.tar.gz
avformat/avformat: Avoid including codec.h, frame.h
AVCodec is only ever used as an incomplete type (i.e. via a pointer to an AVCodec) in avformat.h and it is not really part of the core of avformat.h or libavformat; almost none of our internal users make use of it (and none make use of hwcontext.h, which is implicitly included). So switch to use struct AVCodec, but continue to include codec.h for external users for compatibility. Also, do the same for AVFrame and frame.h, which is implicitly included by codec.h (via lavu/hwcontext.h). Also, remove an unnecessary inclusion of <time.h>. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 53e70ccb53..051e8e2893 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -566,8 +566,8 @@ void ff_parse_key_value(const char *str, ff_parse_key_val_cb callback_get_buf,
enum AVCodecID ff_guess_image2_codec(const char *filename);
-const AVCodec *ff_find_decoder(AVFormatContext *s, const AVStream *st,
- enum AVCodecID codec_id);
+const struct AVCodec *ff_find_decoder(AVFormatContext *s, const AVStream *st,
+ enum AVCodecID codec_id);
/**
* Set the time base and wrapping info for a given stream. This will be used