git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25922 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Mohamed Tarek 2010-05-09 21:42:09 +00:00
parent 6a96037d09
commit cd4d80aeba
7 changed files with 49 additions and 3 deletions

View file

@ -345,8 +345,14 @@ static int asf_parse_header(int fd, struct mp3entry* id3,
read(fd, wfx->data, 6);
lseek(fd,current.size - 24 - 72 - 6,SEEK_CUR);
wfx->audiostream = flags&0x7f;
} else if (wfx->codec_id == ASF_CODEC_ID_WMAPRO) {
read(fd, wfx->data, 10);
lseek(fd,current.size - 24 - 72 - 10,SEEK_CUR);
wfx->audiostream = flags&0x7f;
/* Correct codectype to redirect playback to the proper .codec */
id3->codectype = AFMT_WMAPRO;
} else {
DEBUGF("Unsupported WMA codec (Pro, Lossless, Voice, etc)\n");
DEBUGF("Unsupported WMA codec (Lossless, Voice, etc)\n");
lseek(fd,current.size - 24 - 72,SEEK_CUR);
}