[FFmpeg-devel] [PATCH 4/6] mp3enc: add support for writing UTF-16 tags

Ronald S. Bultje rsbultje
Fri Jan 21 21:20:55 CET 2011


Hi,

On Fri, Jan 21, 2011 at 2:18 PM, Anton Khirnov <anton at khirnov.net> wrote:
> + ? ?void (*put)(ByteIOContext*, const char*) = avio_put_str;
> + ? ?ByteIOContext *dyn_buf;
> + ? ?if (url_open_dyn_buf(&dyn_buf) < 0)
> + ? ? ? ?return 0;

return -1? This is an error.

> + ? ?put_byte(dyn_buf, enc);
> + ? ?if (enc == ID3v2_ENCODING_UTF16BOM) {
> + ? ? ? ?put_le16(dyn_buf, 0xFEFF); ? ? ?/* BOM */
> + ? ? ? ?put = avio_put_str16le;
> + ? ?}
[..]

} else {
    put = avio_put_str;
}

Ronald



More information about the ffmpeg-devel mailing list