From fd101c9c3bcdeb2d74274aaeaa968fe8ead3622d Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 23 Jul 2021 04:01:44 +0200 Subject: avformat/internal: Move ff_read_line_to_bprint_overwrite to avio_internal.h It only uses an AVIOContext and an AVBPrint. When doing so, it turned out that several non-users of ff_read_line_to_bprint_overwrite() and ff_bprint_to_codecpar_extradata() relied on libavformat/internal.h to include bprint.h or avstring.h for them. In order to avoid a repeat of this and in order to reduce unnecessary dependencies, a forward declaration of struct AVBPrint is used instead of including bprint.h. Signed-off-by: Andreas Rheinhardt --- libavdevice/v4l2.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavdevice') diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c index 1c0de118cc..b5997fba33 100644 --- a/libavdevice/v4l2.c +++ b/libavdevice/v4l2.c @@ -33,6 +33,7 @@ #include #include "libavutil/avassert.h" +#include "libavutil/avstring.h" #include "v4l2-common.h" #include -- cgit v1.2.3