[Ffmpeg-devel] [PATCH] Chinese AVS video decoder

Stefan Gehrer stefan.gehrer
Mon Jul 3 21:05:08 CEST 2006


Von: "M?ns Rullg?rd"

> These will cause alignment problems on non-x86 machines.
> 
> > +static void intra_pred_vert(uint8_t *d,uint8_t *top,uint8_t *left,int
> stride) {
> > +    int y;
> > +    uint64_t a = *((uint64_t *)(&top[1]));
> > +    for(y=0;y<8;y++) {
> > +        *((uint64_t *)(d+y*stride)) = a;
> > +    }
> > +}

Just realised that this thing is still in the code and top[1] is very
likely not on a word boundary, but I do not know how to fix this nicely.
Suggestions?

Regards
Stefan Gehrer
-- 


"Feel free" ? 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail




More information about the ffmpeg-devel mailing list