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.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/metadata/asf.c b/apps/metadata/asf.c
index fac4092256..db806ea17f 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,
345 read(fd, wfx->data, 6); 345 read(fd, wfx->data, 6);
346 lseek(fd,current.size - 24 - 72 - 6,SEEK_CUR); 346 lseek(fd,current.size - 24 - 72 - 6,SEEK_CUR);
347 wfx->audiostream = flags&0x7f; 347 wfx->audiostream = flags&0x7f;
348 } else if (wfx->codec_id == ASF_CODEC_ID_WMAPRO) {
349 read(fd, wfx->data, 10);
350 lseek(fd,current.size - 24 - 72 - 10,SEEK_CUR);
351 wfx->audiostream = flags&0x7f;
352 /* Correct codectype to redirect playback to the proper .codec */
353 id3->codectype = AFMT_WMAPRO;
348 } else { 354 } else {
349 DEBUGF("Unsupported WMA codec (Pro, Lossless, Voice, etc)\n"); 355 DEBUGF("Unsupported WMA codec (Lossless, Voice, etc)\n");
350 lseek(fd,current.size - 24 - 72,SEEK_CUR); 356 lseek(fd,current.size - 24 - 72,SEEK_CUR);
351 } 357 }
352 358