Minor fix to metadata fetching, the track-info.filesize is not populated at this point

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9600 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Brandon Low 2006-04-11 03:54:24 +00:00
parent 574c5242e0
commit fb6b475dee

View file

@ -1504,8 +1504,8 @@ bool get_metadata(struct track_info* track, int fd, const char* trackname,
}
/* One A52 frame contains 6 blocks, each containing 256 samples */
totalsamples = (track->filesize / track->id3.bytesperframe) * 6 * 256;
track->id3.length = (totalsamples / track->id3.frequency) * 1000;
totalsamples = track->id3.filesize / track->id3.bytesperframe * 6 * 256;
track->id3.length = totalsamples / track->id3.frequency * 1000;
break;
case AFMT_ALAC: