FFmpeg/libavcodec
Matthew Einhorn e662b263d9 Fixes avpicture_layout to not write past buffer end.
avpicture_get_size() returns the size of buffer required for avpicture_layout.
For pseudo-paletted formats (gray8...) this size does not include the palette.
However, avpicture_layout doesn't know this and still writes the palette. Consequently,
avpicture_layout writes passed the length of the buffer. This fixes it
by fixing avpicture_layout so that it doesn't write the palette for these formats.

Signed-off-by: Matthew Einhorn <moiein2000@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2011-10-19 23:28:04 +02:00
..
2011-10-19 20:26:55 +02:00
2011-10-11 14:57:58 -04:00
2011-10-10 21:36:12 +02:00
2011-10-10 21:36:12 +02:00
2011-10-15 20:30:54 +02:00
2011-10-10 21:36:13 +02:00
2011-10-10 02:58:18 +02:00
2011-10-07 02:29:31 +02:00
2011-10-07 17:15:45 +02:00
2011-10-07 16:25:31 +02:00
2011-10-09 03:22:57 +02:00
2011-10-10 21:36:13 +02:00
2011-10-09 03:22:49 +02:00
2011-10-19 20:26:55 +02:00
2011-10-19 20:26:55 +02:00
2011-10-06 23:33:09 +02:00
2011-10-07 00:27:03 +02:00
2011-10-09 03:22:57 +02:00