[MPlayer-dev-eng] An audio file demuxer ???

Arpi arpi at thot.banki.hu
Wed Feb 13 21:54:41 CET 2002


Hi,

> > you should check frame header (4 bytes) using my head_check stuff, it will
> > return frame size. then you should read the whole frame as a new
> > demux_packet. if it fails (returns negative value) you should skip 1 byte
> > and try again (to resync at errors, text and id3v2 tags etc)
> 	It's what it do. But I moved the printf to mp_msg at level debug 2
> 	to avoid anoying msgs.
great!

> > do you support any encoding for .wav files? they have waveformatex-like
> > header containing FormatTag code 9same as format 0xXXX in codecs.conf),
> > so it could play mp3s with wav header, and also other codecs encapsulated
> > into wav format (adpcm etc)
> 	Yes with wav it put directly the 'fmt ' fields in the sh_audio and WAVEFORM
> ATEX
> 	struct. There is just the cbSize fields wich I didn't understand what it me
> an.
> 	I fill it with the 'fmt ' length but it's not for this, no ? Anyway it work
>  with pcm
> 	wav.

cbSize contains the size of extra, codec-specific data appended to the
waveformatex struct. if no such thing, set it to 0.
for example, the l3codeca.acm windows mp3 decoder dll requires it, but it's
unusual to be used by others.


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list