[FFmpeg-devel] [PATCH]Set palette for 1bit PCX

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Nov 11 18:21:04 CET 2011


Reimar Döffinger <Reimar.Doeffinger <at> gmx.de> writes:

> > +        ((uint32_t *) p->data[1])[0] = 0xFF000000;
> > +        ((uint32_t *) p->data[1])[1] = 0xFFFFFFFF;
> 
> Hm, might it be better to use AV_WNA32 to avoid e.g. possible
> aliasing warnings/issues?
> I know it seems overly pedantic, but still.

Is this what you had in mind?
AV_WN32(p->data[1]  , 0xFF000000);
AV_WN32(p->data[1]+4, 0xFFFFFFFF);

Carl Eugen



More information about the ffmpeg-devel mailing list