1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

fix 3gp metadata, write strings in UTF8, patch by Larbi Joubala, larbi dot joubala at resonate-mp4 dot com

Originally committed as revision 19023 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Larbi Joubala 2009-05-31 05:24:16 +00:00 committed by Baptiste Coudurier
parent 135c8c2c16
commit 15c315b7f1

View File

@ -1437,7 +1437,7 @@ static int mov_write_3gp_udta_tag(ByteIOContext *pb, AVFormatContext *s,
put_be16(pb, atoi(t->value));
else {
put_be16(pb, language_code("eng")); /* language */
ascii_to_wc(pb, t->value);
put_buffer(pb, t->value, strlen(t->value)+1); /* UTF8 string value */
if (!strcmp(tag, "albm") &&
(t = av_metadata_get(s->metadata, "year", NULL, 0)))
put_byte(pb, atoi(t->value));