changeset 1509:3b3fe8afc42e

now mp4 plugin fills album and length correctly.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Tue, 21 Aug 2007 15:09:22 +0900
parents a99d8f3b3e7c
children 3a252050736c
files src/aac/src/libmp4.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/aac/src/libmp4.c	Sun Aug 19 17:20:31 2007 +0300
+++ b/src/aac/src/libmp4.c	Tue Aug 21 15:09:22 2007 +0900
@@ -389,6 +389,7 @@
         faacDecClose(decoder);
 
         msDuration = ((float)numSamples * (float)(framesize - 1.0)/(float)samplerate) * 1000;
+        tuple_associate_int(ti, "length", msDuration);
 
         mp4ff_meta_get_title(mp4file, &tmpval);
         if (tmpval)
@@ -400,7 +401,7 @@
         mp4ff_meta_get_album(mp4file, &tmpval);
         if (tmpval)
         {
-            tuple_associate_string(ti, "title", tmpval);
+            tuple_associate_string(ti, "album", tmpval);
             free(tmpval);
         }