summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-02-24 07:36:05 +0100
committerRonald S. Bultje <rsbultje@gmail.com>2011-02-25 14:38:57 -0500
commit61840b43607679e8c4a1a63f005770f69dda12fa (patch)
treefa214ad1f993755aeebe88d9117e864f06389f05
parentbbc413f943b53d96aa85fe272ec413c85794019f (diff)
avio: deprecate put_tag
it's not used internally anymore and shouldn't be public. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
-rw-r--r--libavformat/avio.h2
-rw-r--r--libavformat/aviobuf.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 5876228235..613d77d240 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -407,6 +407,7 @@ attribute_deprecated void put_le24(AVIOContext *s, unsigned int val);
attribute_deprecated void put_be24(AVIOContext *s, unsigned int val);
attribute_deprecated void put_le16(AVIOContext *s, unsigned int val);
attribute_deprecated void put_be16(AVIOContext *s, unsigned int val);
+attribute_deprecated void put_tag(AVIOContext *s, const char *tag);
/**
* @}
*/
@@ -443,7 +444,6 @@ void avio_wl24(AVIOContext *s, unsigned int val);
void avio_wb24(AVIOContext *s, unsigned int val);
void avio_wl16(AVIOContext *s, unsigned int val);
void avio_wb16(AVIOContext *s, unsigned int val);
-void put_tag(AVIOContext *s, const char *tag);
#if FF_API_OLD_AVIO
attribute_deprecated void put_strz(AVIOContext *s, const char *buf);
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 270352ecb6..f53ec562f5 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -449,12 +449,14 @@ void avio_wb24(AVIOContext *s, unsigned int val)
avio_w8(s, val);
}
+#if FF_API_OLD_AVIO
void put_tag(AVIOContext *s, const char *tag)
{
while (*tag) {
avio_w8(s, *tag++);
}
}
+#endif
/* Input stream */