diff options
author | Jan Ekström <jan.ekstrom@24i.com> | 2021-09-20 14:30:14 +0300 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2021-10-04 17:13:21 +0300 |
commit | 151f46e84ddce557aace102a9f86f72d37e1cdbf (patch) | |
tree | 17a92fca4f643795b974558af7418a63e5447b66 /libavformat/aviobuf.c | |
parent | 94f227bac1c0189d5a270322398bfa4ffa6ad196 (diff) | |
download | ffmpeg-151f46e84ddce557aace102a9f86f72d37e1cdbf.tar.gz |
avformat/{aviobuf,avio_internal}: add ff_read_string_to_bprint_overwrite
For now, same as ff_read_line_to_bprint_overwrite, but reads until
the end of a null-terminated string.
Signed-off-by: Jan Ekström <jan.ekstrom@24i.com>
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r-- | libavformat/aviobuf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index f846a2fd6a..6ec20e33d2 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -863,6 +863,11 @@ int64_t ff_read_line_to_bprint_overwrite(AVIOContext *s, AVBPrint *bp) return read_string_to_bprint_overwrite(s, bp, FFBPrintReadLine); } +int64_t ff_read_string_to_bprint_overwrite(AVIOContext *s, AVBPrint *bp) +{ + return read_string_to_bprint_overwrite(s, bp, FFBPrintReadString); +} + int avio_get_str(AVIOContext *s, int maxlen, char *buf, int buflen) { int i; |