[FFmpeg-devel] [PATCH] support e-ac-3 in wav

Michael Niedermayer michaelni
Tue Sep 2 01:16:45 CEST 2008


On Mon, Sep 01, 2008 at 01:50:38PM -0400, Justin Ruggles wrote:
> Justin Ruggles wrote:
> > Hi,
> > 
> > $subject
> > 
> > I think this is the way to do what I'm after, but I'm not completely
> > sure.  This is the desired behavior:
> > 
> > decoding: support 0x2000 or 0xEAC3
> > encoding: use 0x2000
> > 
> > -Justin
> 
> I forgot a couple things. New patch attached.
> 

> Index: libavformat/riff.c
> ===================================================================
> --- libavformat/riff.c	(revision 15146)
> +++ libavformat/riff.c	(working copy)
> @@ -196,6 +196,8 @@
>      { CODEC_ID_ATRAC3,          0x0270 },
>      { CODEC_ID_IMC,             0x0401 },
>      { CODEC_ID_AC3,             0x2000 },
> +    { CODEC_ID_EAC3,            0x2000 },

Also note that with this, i think
0x2000 will be mapped to AC-3 (though the stored data may have been EAC-3)
i do not personally care much about this but maybe someone else does so i
thought id mention it ...

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

If a bugfix only changes things apparently unrelated to the bug with no
further explanation, that is a good sign that the bugfix is wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080902/f5580cb2/attachment.pgp>



More information about the ffmpeg-devel mailing list