avcodec/msrledec: restructure msrle_decode_pal4() based on the line number instead...
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 24 Mar 2015 14:50:12 +0000 (15:50 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 24 Mar 2015 15:07:26 +0000 (16:07 +0100)
commitf7e1367f58263593e6cee3c282f7277d7ee9d553
tree42057eee635fa64d117e9fdd7f4a70a16f71856a
parent0276b9524294e518cdc7cbfa12b7cb301ed86fb6
avcodec/msrledec: restructure msrle_decode_pal4() based on the line number instead of the pixel pointer

Fixes out of array access
Fixes: da14e86d8462be6493eab16bc2d40f88/asan_heap-oob_204cfd2_528_cov_340150052_COMPRESS.BMP

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/msrledec.c