# HG changeset patch # User Yoshiki Yazawa # Date 1187676562 -32400 # Node ID 3b3fe8afc42e01339317a9c0b62925eded870d42 # Parent a99d8f3b3e7c722441ac136947f19c8deeee357f now mp4 plugin fills album and length correctly. diff -r a99d8f3b3e7c -r 3b3fe8afc42e src/aac/src/libmp4.c --- 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); }