]> git.sesse.net Git - ffmpeg/commitdiff
avio: deprecate put_tag
authorAnton Khirnov <anton@khirnov.net>
Thu, 24 Feb 2011 06:36:05 +0000 (07:36 +0100)
committerRonald S. Bultje <rsbultje@gmail.com>
Fri, 25 Feb 2011 19:38:57 +0000 (14:38 -0500)
it's not used internally anymore and shouldn't be public.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavformat/avio.h
libavformat/aviobuf.c

index 58762282358ea4a34cf1db848dae998f78d8e3e2..613d77d24026745dd78a65615663bfe8adc1bb44 100644 (file)
@@ -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);
index 270352ecb6221db10785b88d80cb8ec0a56a4a5c..f53ec562f54122ba197fbd10ec40aa837cee617f 100644 (file)
@@ -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 */