X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Favio_internal.h;h=eb628ac493493054bcd90435c78e465b0aad1fd2;hb=cdba00ae113c94ef243bc238c64678c7bca82084;hp=04c1ad5157bf188c7c9c92219d649c168daf4f5d;hpb=022fa7a24ea8f5000e7b6a50e57cc752f417da47;p=ffmpeg diff --git a/libavformat/avio_internal.h b/libavformat/avio_internal.h index 04c1ad5157b..eb628ac4934 100644 --- a/libavformat/avio_internal.h +++ b/libavformat/avio_internal.h @@ -86,6 +86,15 @@ int ffio_read_size(AVIOContext *s, unsigned char *buf, int size); /** @warning must be called before any I/O */ int ffio_set_buf_size(AVIOContext *s, int buf_size); +/** + * Reallocate a given buffer for AVIOContext. + * + * @param s the AVIOContext to realloc. + * @param buf_size required new buffer size. + * @return 0 on success, a negative AVERROR on failure. + */ +int ffio_realloc_buf(AVIOContext *s, int buf_size); + /** * Ensures that the requested seekback buffer size will be available *