diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-01-21 19:18:07 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-01-21 20:21:03 +0000 |
commit | 4efd5cf34b7a04f87805aa0f09913d1d122d300c (patch) | |
tree | fee5313b3fd0435d44cab3e47a5dde79e1405576 /libavformat/avio.h | |
parent | 1c189fc5334d4a687b15861d81d22c8ba2c9cd5e (diff) | |
download | ffmpeg-4efd5cf34b7a04f87805aa0f09913d1d122d300c.tar.gz |
avio: add av_put_str and deprecate put_strz in favor of it
Signed-off-by: Mans Rullgard <mans@mansr.com>
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. |