[MPlayer-dev-eng] [PATCH] add support for AC3 endianness

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Thu Nov 15 12:50:37 CET 2007


Hello,
On Sun, Sep 23, 2007 at 06:55:50PM +0800, Ulion wrote:
> > Index: libao2/ao_dxr2.c
> > ===================================================================
> > --- libao2/ao_dxr2.c	(revision 24540)
> > +++ libao2/ao_dxr2.c	(working copy)
> > @@ -181,7 +181,7 @@
> >    // MPEG and AC3 don't work :-(
> >      if(ao_data.format==AF_FORMAT_MPEG2)
> >        send_mpeg_ps_packet (data, len, 0xC0, ao_data.pts, 2, write_dxr2);
> > -    else if(ao_data.format==AF_FORMAT_AC3)
> > +    else if(AF_FORMAT_IS_AC3(ao_data.format))
> >        send_mpeg_ps_packet (data, len, 0x80, ao_data.pts, 2, write_dxr2);
> >      else {
> >  	int i;
> 
> Here send_mpeg_ps_packet with id 0x80, what's the byte-order the
> function expect, BE or LE?

I don't know, but I think it can't get much worse than it currently is.
And this way it is fixable with -af format.

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list