[FFmpeg-devel] [PATCH 08/25] lavc/cbs.h: avoid avcodec.h dependency
Anton Khirnov
anton at khirnov.net
Fri May 21 21:00:39 EEST 2021
Include only the headers that are actually needed.
---
libavcodec/cbs.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/cbs.h b/libavcodec/cbs.h
index 8b432393b8..509f76b9c6 100644
--- a/libavcodec/cbs.h
+++ b/libavcodec/cbs.h
@@ -24,7 +24,9 @@
#include "libavutil/buffer.h"
-#include "avcodec.h"
+#include "codec_id.h"
+#include "codec_par.h"
+#include "packet.h"
/*
--
2.30.2
More information about the ffmpeg-devel
mailing list