[MPlayer-dev-eng] [PATCH] ao pcm on bigendian

Michael Niedermayer michaelni at gmx.at
Sun Jul 21 18:39:53 CEST 2002


Hi

On Sunday 21 July 2002 18:23, Colin Leroy wrote:
> On Sun, 21 Jul 2002 12:33:50 +0200 Colin Leroy <colin at colino.net> wrote:
> >That was the problem (00ba ca02 is data_length and wasn't swapped on BE
> >machines). Here's a patch that corrects it. Please commit :-)
>
> Hi,
>
> Saw that Arpi commited it, cool.
>
> I tried mencoder -ovc lavc and there are other endianness issues :)
>
> The resulting files begins with:
> x86:< 0000000 5249 4646 a235 4004 4156 4920 4c49 5354
> ppc:> 0000000 4646 4952 0440 1aa6 2049 5641 5453 494c
>
> I'm having a hard time finding out where it is for this one :-/ Where
> should I look ?
5249 4646 == "RIFF"

grep -nr \'R\',\'I\', lib* *.c

libmpdemux/aviheader.c:262:    case mmioFOURCC('R','I','F','F'): {
libmpdemux/aviwrite.c:129:  riff[0]=mmioFOURCC('R','I','F','F');
libmpdemux/demux_avi.c:366:  if(id==mmioFOURCC('R','I','F','F')){
libmpdemux/demuxer.c:553:    if(id==mmioFOURCC('R','I','F','F')){

ill bet on aviwrite.c

[...]

Michael



More information about the MPlayer-dev-eng mailing list