From dccbd97d72991f4df63542e1ee03db2f8d7a0238 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 21 Jan 2011 19:18:08 +0000 Subject: lavf: move ff_put_str16_nolen from asf to avio and rename it It will be useful in the mp3 muxer. Signed-off-by: Mans Rullgard --- libavformat/asf.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'libavformat/asf.c') diff --git a/libavformat/asf.c b/libavformat/asf.c index 58e17e9cef..e6659923d7 100644 --- a/libavformat/asf.c +++ b/libavformat/asf.c @@ -156,20 +156,3 @@ const AVMetadataConv ff_asf_metadata_conv[] = { // { "Year" , "date" }, TODO: conversion year<->date { 0 } }; - -int ff_put_str16_nolen(ByteIOContext *s, const char *tag) -{ - const uint8_t *q = tag; - int ret = 0; - - while (*q) { - uint32_t ch; - uint16_t tmp; - - GET_UTF8(ch, *q++, break;) - PUT_UTF16(ch, tmp, put_le16(s, tmp);ret += 2;) - } - put_le16(s, 0); - ret += 2; - return ret; -} -- cgit v1.2.3