[MPlayer-dev-eng] [PATCH] bigendian fix for hwac3

Ulion ulion2002 at gmail.com
Fri Sep 14 03:29:02 CEST 2007


>
> As your native word version, there's little problem:
> > -    buf[6] = (len << 3) & 0xFF;
> > -    buf[7] = (len >> 5) & 0xFF;
> > +    buf16[3] = len << 3;
> Which probably should be more complex such like:
>     buf16[3] = ((len << 3) & 0xFF00) | (len & 0x3F);


This is my mistake, it should be 'len << 3', that's the bits number of
following payload.

-- 
Ulion



More information about the MPlayer-dev-eng mailing list