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 ba1b8972af..c445e485a2 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,
357 wfx->audiostream = flags&0x7f; 357 wfx->audiostream = flags&0x7f;
358 /* Correct codectype to redirect playback to the proper .codec */ 358 /* Correct codectype to redirect playback to the proper .codec */
359 id3->codectype = AFMT_WMAPRO; 359 id3->codectype = AFMT_WMAPRO;
360 } else if (wfx->codec_id == ASF_CODEC_ID_WMAVOICE) {
361 read(fd, wfx->data, wfx->datalen);
362 lseek(fd,current.size - 24 - 72 - wfx->datalen,SEEK_CUR);
363 wfx->audiostream = flags&0x7f;
364 id3->codectype = AFMT_WMAVOICE;
360 } else { 365 } else {
361 DEBUGF("Unsupported WMA codec (Lossless, Voice, etc)\n"); 366 DEBUGF("Unsupported WMA codec (Lossless, Voice, etc)\n");
362 lseek(fd,current.size - 24 - 72,SEEK_CUR); 367 lseek(fd,current.size - 24 - 72,SEEK_CUR);