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:05:55 +0000 (22:05 +0200)
commit3539d6c63a16e1b2874bb037a86f317449c58770
tree0d0869ac7940ef216b26c65fed6be4d00c716e90
parent9bcdb98839f3d883867d87c6425e67ed7bcc7149
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>
libavcodec/iff.c