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 <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2021-07-23 04:01:44 +02:00
parent 642b202567
commit fd101c9c3b
17 changed files with 30 additions and 15 deletions

View File

@@ -27,6 +27,7 @@
* http://www.goice.co.jp/member/mo/formats/au.html
*/
#include "libavutil/bprint.h"
#include "avformat.h"
#include "internal.h"
#include "avio_internal.h"