[FFmpeg-devel] [PATCH] get rid of nonsense palette pointer for RGB8, GRAY8 etc.

Reimar Döffinger Reimar.Doeffinger
Fri Mar 20 21:43:23 CET 2009


On Fri, Mar 20, 2009 at 09:12:49PM +0100, Michael Niedermayer wrote:
> about the avpicture_layout patch i dont understand it, avpicture_get_size()
> should return the correct size

avpicture_get_size() returns the size needed for the memory buffer, that
includes a palette even for GRAY8.
And I thought we had agreed that -f rawvideo should not write a palette
for GRAY8.
rawdec.c needs to be fixed as well, but the code simply makes no sense
to me, it requires a palette in the input data for e.g. GRAY8 but not
for PAL8, it does copy a palette for PAL8, but leaves the palette
completely uninitialized for anything else.




More information about the ffmpeg-devel mailing list