summaryrefslogtreecommitdiff
path: root/apps/metadata/asf.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/metadata/asf.c')
-rw-r--r--apps/metadata/asf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/metadata/asf.c b/apps/metadata/asf.c
index ba1b897..c445e48 100644
--- a/apps/metadata/asf.c
+++ b/apps/metadata/asf.c
@@ -357,6 +357,11 @@ static int asf_parse_header(int fd, struct mp3entry* id3,
wfx->audiostream = flags&0x7f;
/* Correct codectype to redirect playback to the proper .codec */
id3->codectype = AFMT_WMAPRO;
+ } else if (wfx->codec_id == ASF_CODEC_ID_WMAVOICE) {
+ read(fd, wfx->data, wfx->datalen);
+ lseek(fd,current.size - 24 - 72 - wfx->datalen,SEEK_CUR);
+ wfx->audiostream = flags&0x7f;
+ id3->codectype = AFMT_WMAVOICE;
} else {
DEBUGF("Unsupported WMA codec (Lossless, Voice, etc)\n");
lseek(fd,current.size - 24 - 72,SEEK_CUR);