diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-01-21 19:18:07 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-01-23 19:32:06 +0100 |
commit | e910a77b0d203870253eaa8ec43527560221268d (patch) | |
tree | fa6fc3a5daa3ca21ccdd945291f270c1144b055e /libavformat/avio.h | |
parent | 384dbd617f7c28950e902634d400189f22033202 (diff) | |
download | ffmpeg-e910a77b0d203870253eaa8ec43527560221268d.tar.gz |
avio: add av_put_str and deprecate put_strz in favor of it
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 4efd5cf34b7a04f87805aa0f09913d1d122d300c)
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r-- | libavformat/avio.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index 198507e4a8..9f71c1921e 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -367,7 +367,15 @@ void put_le16(ByteIOContext *s, unsigned int val); void put_be16(ByteIOContext *s, unsigned int val); void put_tag(ByteIOContext *s, const char *tag); -void put_strz(ByteIOContext *s, const char *buf); +#if FF_API_OLD_AVIO +attribute_deprecated void put_strz(ByteIOContext *s, const char *buf); +#endif + +/** + * Write a NULL-terminated string. + * @return number of bytes written. + */ +int avio_put_str(ByteIOContext *s, const char *str); /** * fseek() equivalent for ByteIOContext. |