[Ffmpeg-devel] [PATCH] xan_dpcm in MPlayer + libavformat

Michael Niedermayer michaelni
Sat Nov 18 03:20:24 CET 2006


Hi

On Fri, Nov 17, 2006 at 05:17:58PM -0800, Mike Melanson wrote:
> Diego Biurrun wrote:
> >IIUC MPlayer falls back on codec_id if codec_tag is not set.  The
> >problem is that these AVI files mark the xan_dpcm audio as 0x1 (or was
> >it FourCC Axan + TwoCC 0x1 Roberto?), which is PCM.  I don't think there
> >is a way to support this without hacks..
> 
> Right. The people (Origin) that developed this format never applied with 
> Microsoft for a specific codec ID; they didn't mean for these files to 
> be played in general media players. They have codec ID 0x0001 (usually 
> reserved for PCM). There is data elsewhere in the AVI file indicating 
> 'Axan'. All written up here:

AVCodecContext.stream_codec_tag i assume, and i would appreciate it if
someone would remove this dirty "if video is xan then audio is so too"
hack and instead add Axan to riff.c and check both stream_codec_id and
codec_id

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-devel mailing list