diff movenc.c @ 6041:de15f3f1f2ba libavformat

albm 3gp tag has optional track field not date
author bcoudurier
date Sun, 23 May 2010 21:04:39 +0000
parents 2bab410094e0
children 0b0e8fff6673
line wrap: on
line diff
--- a/movenc.c	Sun May 23 21:03:14 2010 +0000
+++ b/movenc.c	Sun May 23 21:04:39 2010 +0000
@@ -1530,7 +1530,7 @@
         put_be16(pb, language_code("eng")); /* language */
         put_buffer(pb, t->value, strlen(t->value)+1); /* UTF8 string value */
         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));
     }
     return updateSize(pb, pos);