[Ffmpeg-devel] [PATCH] add support for indexed 8bpp BMP files

Reimar Doeffinger Reimar.Doeffinger
Thu Apr 19 13:24:03 CEST 2007


Hello,
On Mon, Apr 16, 2007 at 01:33:47PM +0200, lode leroy wrote:
> >> +	    > +	    memcpy(p->data[1], pal, clrimportant*sizeof(uint32_t));
> >likely wrong on big endian
> 
> I think it isn't. it's an array of R / G / B / 0 bytes
> but I did change the sizeof(uint32_t) to "4" ...

Palette in data[1] must be in machine-endian in ffmpeg. I don't think
it's that a good idea, but that's how it is...

Greetings,
Reimar Doeffinger




More information about the ffmpeg-devel mailing list