aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avio.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-06 18:04:49 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-03-08 02:09:33 +0100
commit718975aa111bc41deac0d432a7749d0aee6ef7a0 (patch)
tree88f4c2fe918effc5b94c6fd6629d183d186d0223 /libavformat/avio.h
parent5e06b02005265d8c862e7c6ee3c6f1d0a5bd8c4d (diff)
downloadffmpeg-718975aa111bc41deac0d432a7749d0aee6ef7a0.tar.gz
avio: deprecate url_fget_max_packet_size
AVIOContext.max_packet_size should be used directly instead. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> (cherry picked from commit e8bb2e24398ec838d9e49cf115b7e132609a9fb7)
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r--libavformat/avio.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index b133ade906..0d83755a1e 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -627,15 +627,12 @@ int avio_open(AVIOContext **s, const char *url, int flags);
int avio_close(AVIOContext *s);
URLContext *url_fileno(AVIOContext *s);
+#if FF_API_OLD_AVIO
/**
- * Return the maximum packet size associated to packetized buffered file
- * handle. If the file is not packetized (stream like http or file on
- * disk), then 0 is returned.
- *
- * @param s buffered file handle
- * @return maximum packet size in bytes
+ * @deprecated use AVIOContext.max_packet_size directly.
*/
-int url_fget_max_packet_size(AVIOContext *s);
+attribute_deprecated int url_fget_max_packet_size(AVIOContext *s);
+#endif
int url_open_buf(AVIOContext **s, uint8_t *buf, int buf_size, int flags);