bmpdec: only initialize palette for pal8.
authorAnton Khirnov <anton@khirnov.net>
Sun, 16 Sep 2012 06:33:09 +0000 (08:33 +0200)
committerReinhard Tartler <siretart@tauware.de>
Fri, 4 Jan 2013 06:43:21 +0000 (07:43 +0100)
commitd3e2f35f7addb6cb3a59aa823b716c8fa0b32b51
tree628bda49e0e5450f85710be8f54831cf788676e0
parente39fc137aeace9420690c264067c37ff516b4743
bmpdec: only initialize palette for pal8.

Gray8 is not considered to be paletted, so this would cause an invalid
write.

Fixes bug 367.

CC: libav-stable@libav.org
(cherry picked from commit 8b78c2969a5b7dca939d93bf525aa2bcd737b5d9)

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/bmp.c