[FFmpeg-devel] [PATCH 2/2] avio: deprecate put_tag
Anton Khirnov
anton
Wed Feb 23 18:05:08 CET 2011
it's not used internally anymore and shouldn't be public.
---
libavformat/avio.h | 2 +-
libavformat/aviobuf.c | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libavformat/avio.h b/libavformat/avio.h
index 5876228..613d77d 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 270352e..f53ec56 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 */
--
1.7.2.3
More information about the ffmpeg-devel
mailing list