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>
Sat, 30 Aug 2014 19:13:11 +0000 (21:13 +0200)
commit5865d599c38850b2a1fd33fe197eb8fcc6c970a4
tree5ea2fbb9e6b9525e1432b5e8ee9af3142ff38a89
parentd03fd2c8052ee80e7221ab02ab0fcb5220e92698
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)

Conflicts:

libavcodec/iff.c
(cherry picked from commit 656f930160db48e0b7b25069c62abc340e7f0628)

Conflicts:

libavcodec/iff.c
(cherry picked from commit abc1fa7c5a1dca1345b9471b81cfcda00c56220d)

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