avcodec/iff: check pixfmt for rgb8 / rgbn
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 10 Aug 2014 19:59:33 +0000 (21:59 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 10 Aug 2014 20:40:50 +0000 (22:40 +0200)
commit83956309cc16b47fbf8548e8c5bcf67b8cd4b65f
tree3d1a229a432f663106874c62b778c659ca3fef82
parented15be7519af8aa68bdf58ccdf39915b560d11a2
avcodec/iff: check pixfmt for rgb8 / rgbn

Fixes out of array access

Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 3539d6c63a16e1b2874bb037a86f317449c58770)

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