summaryrefslogtreecommitdiff
path: root/libavformat/aviobuf.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-14 20:39:05 +0100
committerRonald S. Bultje <rsbultje@gmail.com>2011-03-16 22:59:39 -0400
commit35f1023592b46e608a4de1566b12268e3e9e72f0 (patch)
tree74341001b36546a52b7ff9b098e6d385b0d0e0f2 /libavformat/aviobuf.c
parent83fddaeb81f782e06281730a809ae2bf4c86a229 (diff)
avio: deprecate url_close_buf
It's not used anywhere and its return value looks broken. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r--libavformat/aviobuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index b2683ca602..2bbcf940d9 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -1010,13 +1010,13 @@ int url_open_buf(AVIOContext **s, uint8_t *buf, int buf_size, int flags)
av_freep(s);
return ret;
}
-#endif
int url_close_buf(AVIOContext *s)
{
put_flush_packet(s);
return s->buf_ptr - s->buffer;
}
+#endif
/* output in a dynamic buffer */