Commit fd7c380c authored by bcoudurier's avatar bcoudurier

fix 3gp metadata, write strings in UTF8, patch by Larbi Joubala, larbi dot...

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19023 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 08bbd7d4
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment