Commit d8dbe95f authored by bcoudurier's avatar bcoudurier

albm 3gp tag has optional track field not date

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23267 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 758412cc
...@@ -1530,7 +1530,7 @@ static int mov_write_3gp_udta_tag(ByteIOContext *pb, AVFormatContext *s, ...@@ -1530,7 +1530,7 @@ static int mov_write_3gp_udta_tag(ByteIOContext *pb, AVFormatContext *s,
put_be16(pb, language_code("eng")); /* language */ put_be16(pb, language_code("eng")); /* language */
put_buffer(pb, t->value, strlen(t->value)+1); /* UTF8 string value */ put_buffer(pb, t->value, strlen(t->value)+1); /* UTF8 string value */
if (!strcmp(tag, "albm") && if (!strcmp(tag, "albm") &&
(t = av_metadata_get(s->metadata, "date", NULL, 0))) (t = av_metadata_get(s->metadata, "track", NULL, 0)))
put_byte(pb, atoi(t->value)); put_byte(pb, atoi(t->value));
} }
return updateSize(pb, pos); return updateSize(pb, pos);
......
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