tga: check palette size earlier.
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 25 Nov 2012 21:30:22 +0000 (22:30 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 25 Nov 2012 21:33:54 +0000 (22:33 +0100)
commit579d21f777ea1cb51a47f38b4429742837b05404
tree963f558ea9d7819e06526a90ec78ae40ee3e0e85
parente55c3857d20ba015e4914c2e80fcab037af0799d
tga: check palette size earlier.

Fixes Ticket1895

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/targa.c