[FFmpeg-cvslog] lavf/avformat.h: drop the avcodec.h include

Anton Khirnov git at videolan.org
Thu Jun 10 17:56:31 EEST 2021


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri May 21 18:54:50 2021 +0200| [e67e02d15672a87da1b0566e197a1e19dc7e1e33] | committer: Anton Khirnov

lavf/avformat.h: drop the avcodec.h include

Since AVStream.codec is gone, avformat.h does not require anything from
avcodec.h.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e67e02d15672a87da1b0566e197a1e19dc7e1e33
---

 libavformat/avformat.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 094683f12a..efe1f5823f 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"
 



More information about the ffmpeg-cvslog mailing list