avcodec/msrle: use av_image_get_linesize() to calculate the linesize
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 16 Feb 2014 22:08:52 +0000 (23:08 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 16 Feb 2014 22:20:57 +0000 (23:20 +0100)
commitc919e1ca2ecfc47d796382973ba0e48b8f6f92a2
tree856005c0f6d7935b62ead86642b91e696d43474b
parent2218fbe05e6dceb9db126c42f52e2a7fe4c05f5b
avcodec/msrle: use av_image_get_linesize() to calculate the linesize

Fixes out of array access
Fixes: 14a74a0a2dc67ede543f0e35d834fbbe-asan_heap-oob_49572c_556_cov_215466444_44_001_engine_room.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/msrle.c