]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/avio_internal.h
avformat/http: escape unsafe URL path in HTTP request
[ffmpeg] / libavformat / avio_internal.h
index 04c1ad5157bf188c7c9c92219d649c168daf4f5d..eb628ac493493054bcd90435c78e465b0aad1fd2 100644 (file)
@@ -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
  *