From 81a91269a2fbeb87de53e395c6bed0c70c310cae Mon Sep 17 00:00:00 2001 From: Mark Reid Date: Mon, 2 Mar 2015 20:06:13 -0800 Subject: libavformat/avio: added avio_put_str16be Signed-off-by: Michael Niedermayer --- libavformat/avio.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavformat/avio.h') diff --git a/libavformat/avio.h b/libavformat/avio.h index b9b4017fb3..8fc7e27d4e 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -233,6 +233,12 @@ int avio_put_str(AVIOContext *s, const char *str); */ int avio_put_str16le(AVIOContext *s, const char *str); +/** + * Convert an UTF-8 string to UTF-16BE and write it. + * @return number of bytes written. + */ +int avio_put_str16be(AVIOContext *s, const char *str); + /** * Passing this as the "whence" parameter to a seek function causes it to * return the filesize without seeking anywhere. Supporting this is optional. -- cgit v1.2.3