summaryrefslogtreecommitdiff
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorLarbi Joubala <larbi.joubala@resonate-mp4.com>2009-05-31 05:24:16 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-05-31 05:24:16 +0000
commit15c315b7f1f6a4ce281e42b9222c14bdb2399371 (patch)
tree365e741a6e846724c17a242a62d2730193d0e62a /libavformat/movenc.c
parent135c8c2c16c70dbc899b5e6aacf8991a0986e9e5 (diff)
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
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 7a2ce2526a..57f05e8fbe 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -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));