From 670812a44a3aed7f142548c2cfa5a5b36381b1a8 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 22 Dec 2018 20:18:06 -0500 Subject: Support MP3 audiostreams embedded in ASF containers. Full credit to Igor Poretsky Change-Id: I54769e33665cada1e1e0ef3a5511b56c8e1b859a --- lib/rbcodec/metadata/asf.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/rbcodec/metadata/asf.c') diff --git a/lib/rbcodec/metadata/asf.c b/lib/rbcodec/metadata/asf.c index 0d115099ec..9a74ada453 100644 --- a/lib/rbcodec/metadata/asf.c +++ b/lib/rbcodec/metadata/asf.c @@ -375,6 +375,11 @@ static int asf_parse_header(int fd, struct mp3entry* id3, lseek(fd,current.size - 24 - 72 - wfx->datalen,SEEK_CUR); wfx->audiostream = flags&0x7f; id3->codectype = AFMT_WMAVOICE; + } else if (wfx->codec_id == ASF_CODEC_ID_MP3) { + lseek(fd,current.size - 24 - 72,SEEK_CUR); + wfx->audiostream = flags&0x7f; + id3->codectype = AFMT_MPA_L3; + id3->is_asf_stream = true; } else { DEBUGF("Unsupported WMA codec (Lossless, Voice, etc)\n"); lseek(fd,current.size - 24 - 72,SEEK_CUR); -- cgit v1.2.3