[FFmpeg-devel] [PATCH 16/25] lavf/avformat.h: drop the avcodec.h include

Anton Khirnov anton at khirnov.net
Fri May 21 21:00:47 EEST 2021


Since AVStream.codec is gone, avformat.h does not require anything from
avcodec.h.
---
 libavformat/avformat.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index a28ac372da..92807e9657 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -309,7 +309,12 @@
 
 #include <time.h>
 #include <stdio.h>  /* FILE */
-#include "libavcodec/avcodec.h"
+
+#include "libavcodec/codec.h"
+#include "libavcodec/codec_par.h"
+#include "libavcodec/defs.h"
+#include "libavcodec/packet.h"
+
 #include "libavutil/dict.h"
 #include "libavutil/log.h"
 
-- 
2.30.2



More information about the ffmpeg-devel mailing list