diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-07-23 04:01:44 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-07-29 22:02:05 +0200 |
commit | fd101c9c3bcdeb2d74274aaeaa968fe8ead3622d (patch) | |
tree | 7e615f5914a0ce123ad7b0d9fa06e8a16f4b6117 /libavformat/internal.h | |
parent | 642b202567d5c18af65a9cf97a46e2ee60084490 (diff) | |
download | ffmpeg-fd101c9c3bcdeb2d74274aaeaa968fe8ead3622d.tar.gz |
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>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r-- | libavformat/internal.h | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h index d71852afb9..002aeb6601 100644 --- a/libavformat/internal.h +++ b/libavformat/internal.h @@ -23,8 +23,6 @@ #include <stdint.h> -#include "libavutil/bprint.h" - #include "libavcodec/avcodec.h" #include "libavcodec/bsf.h" @@ -539,19 +537,6 @@ int ff_get_line(AVIOContext *s, char *buf, int maxlen); */ int ff_get_chomp_line(AVIOContext *s, char *buf, int maxlen); -/** - * Read a whole line of text from AVIOContext to an AVBPrint buffer overwriting - * its contents. Stop reading after reaching a \\r, a \\n, a \\r\\n, a \\0 or - * EOF. The line ending characters are NOT included in the buffer, but they - * are skipped on the input. - * - * @param s the read-only AVIOContext - * @param bp the AVBPrint buffer - * @return the length of the read line not including the line endings, - * negative on error, or if the buffer becomes truncated. - */ -int64_t ff_read_line_to_bprint_overwrite(AVIOContext *s, AVBPrint *bp); - #define SPACE_CHARS " \t\r\n" /** @@ -931,6 +916,7 @@ int ff_reshuffle_raw_rgb(AVFormatContext *s, AVPacket **ppkt, AVCodecParameters */ int ff_get_packet_palette(AVFormatContext *s, AVPacket *pkt, int ret, uint32_t *palette); +struct AVBPrint; /** * Finalize buf into extradata and set its size appropriately. */ |