From cd4d80aeba3c65cb30b520f1aad1e6008e9535b5 Mon Sep 17 00:00:00 2001 From: Mohamed Tarek Date: Sun, 9 May 2010 21:42:09 +0000 Subject: nomsg git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25922 a1c6a512-1295-4272-9138-f99709370657 --- apps/metadata/asf.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'apps/metadata') diff --git a/apps/metadata/asf.c b/apps/metadata/asf.c index fac4092..db806ea 100644 --- a/apps/metadata/asf.c +++ b/apps/metadata/asf.c @@ -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); } -- cgit v1.1