diff options
| author | Mohamed Tarek <mt@rockbox.org> | 2010-05-09 21:42:09 +0000 |
|---|---|---|
| committer | Mohamed Tarek <mt@rockbox.org> | 2010-05-09 21:42:09 +0000 |
| commit | cd4d80aeba3c65cb30b520f1aad1e6008e9535b5 (patch) | |
| tree | 94e437c5c75df6ed2b36cfc3ddaa9d9aa635c9a8 /apps/metadata | |
| parent | 6a96037d09c99041bae87ae7c7a5189adafd7408 (diff) | |
| download | rockbox-cd4d80aeba3c65cb30b520f1aad1e6008e9535b5.zip rockbox-cd4d80aeba3c65cb30b520f1aad1e6008e9535b5.tar.gz rockbox-cd4d80aeba3c65cb30b520f1aad1e6008e9535b5.tar.bz2 rockbox-cd4d80aeba3c65cb30b520f1aad1e6008e9535b5.tar.xz | |
nomsg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25922 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata')
| -rw-r--r-- | apps/metadata/asf.c | 8 |
1 files changed, 7 insertions, 1 deletions
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); } |