[FFmpeg-devel] [PATCH] Introduce avio_wtag.

Baptiste Coudurier baptiste.coudurier
Fri Mar 4 04:28:58 CET 2011


---
 libavformat/avio.h    |    1 +
 libavformat/aviobuf.c |    9 +++++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/libavformat/avio.h b/libavformat/avio.h
index cc46ad7..c9da1f8 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -446,6 +446,7 @@ 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 avio_wtag(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 3f3721c..70d44c0 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -455,13 +455,18 @@ 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)
+void avio_wtag(AVIOContext *s, const char *tag)
 {
     while (*tag) {
         avio_w8(s, *tag++);
     }
 }
+
+#if FF_API_OLD_AVIO
+void put_tag(AVIOContext *s, const char *tag)
+{
+    avio_wtag(s, tag);
+}
 #endif
 
 /* Input stream */
-- 
1.7.4.1




More information about the ffmpeg-devel mailing list