X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=libavformat%2Favio.h;h=e607df5fb476f20a9fa482752eefd6d2dc2c239e;hb=d554d004a67c30e3f38bec51b2c691cfe3af3bb8;hp=4004b6fda91eed02418337dd7307511fb7bc10b3;hpb=c75c594e5a73a9e0368ff842bc837df3bfb866bd;p=ffmpeg diff --git a/libavformat/avio.h b/libavformat/avio.h index 4004b6fda91..e607df5fb47 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -500,4 +500,12 @@ int avio_pause(AVIOContext *h, int pause); int64_t avio_seek_time(AVIOContext *h, int stream_index, int64_t timestamp, int flags); +/** + * Read contents of h into print buffer, up to max_size bytes, or up to EOF. + * + * @return 0 for success (max_size bytes read or EOF reached), negative error + * code otherwise + */ +int avio_read_to_bprint(AVIOContext *h, struct AVBPrint *pb, size_t max_size); + #endif /* AVFORMAT_AVIO_H */