diff mbox series

[FFmpeg-devel,09/25] lavc/cbs_internal: clean up headers

Message ID 20210521180056.17496-9-anton@khirnov.net
State Accepted
Commit 9dbdabe0e0526a4ab7d9e2d2175679c741d19069
Headers show
Series [FFmpeg-devel,01/25] lavc: move small misc definitions into a separate header | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Anton Khirnov May 21, 2021, 6 p.m. UTC
Include all required headers explicitly, avoid avcodec.h dependency.
---
 libavcodec/cbs_internal.h | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavcodec/cbs_internal.h b/libavcodec/cbs_internal.h
index a392880036..f853086fa3 100644
--- a/libavcodec/cbs_internal.h
+++ b/libavcodec/cbs_internal.h
@@ -19,8 +19,13 @@ 
 #ifndef AVCODEC_CBS_INTERNAL_H
 #define AVCODEC_CBS_INTERNAL_H
 
-#include "avcodec.h"
+#include <stdint.h>
+
+#include "libavutil/buffer.h"
+#include "libavutil/log.h"
+
 #include "cbs.h"
+#include "codec_id.h"
 #include "get_bits.h"
 #include "put_bits.h"