[MPlayer-dev-eng] [PATCH] Recognize audio format mp3 in wav files
Ingo Brückl
ib at wupperonline.de
Wed Jul 25 11:20:34 CEST 2012
Reimar Döffinger wrote on Tue, 24 Jul 2012 21:58:51 +0200:
> On 24 Jul 2012, at 13:23, Ingo Brückl <ib at wupperonline.de> wrote:
>> Subject says it all.
>>
>> I happen to have a wav file that contains mp3 data. MPlayer's default
>> demuxer can't play it, while -demuxer lavf plays it just fine. The patch
>> makes MPlayer's default demuxer to play it as well.
>>
>> If there are no objections, I'd like to commit.
> It doesn't really seem right to me, looks like it forces the demuxer to
> misdetect it as raw MP3 file.
Yes, that's the basic idea.
> What exactly is the problem/why does it not work?
> Is it maybe just a matter of enabling parsing in that case?
It is a wav file with RIFF/WAVE/fmt header, but audio format 0x55 0x00 (mp3).
It currently will be detected as frmt == WAV and does not play.
I thought I've improved parsing, but if I didn't please advise.
Ingo
More information about the MPlayer-dev-eng
mailing list