aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/encoding-example.c
diff options
context:
space:
mode:
authorMatthew Einhorn <moiein2000@gmail.com>2011-08-24 20:14:03 -0400
committerMichael Niedermayer <michaelni@gmx.at>2011-11-04 01:23:47 +0100
commitf531193690d91399dd99ae1bf61af311d9734f32 (patch)
tree0c22d94e2d22c4f657c5e3ddf46d9c545b0e3b50 /doc/examples/encoding-example.c
parente86e9f8b7acd8c68a3d4fefc803756d7ee8737eb (diff)
downloadffmpeg-f531193690d91399dd99ae1bf61af311d9734f32.tar.gz
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> (cherry picked from commit e662b263d9c500270a8f1dc7e1b81b51d5bdfd4e) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/examples/encoding-example.c')
0 files changed, 0 insertions, 0 deletions