avcodec/utvideodec: fix assumtation that slice_height >= 1
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 10 Nov 2014 18:44:20 +0000 (19:44 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Jan 2015 17:25:50 +0000 (18:25 +0100)
commitb89b136c001b2bacab01c8778b3b1231f2a07849
tree025206ee4b67ff6193f05a02454456aee64dfea3
parent6ed35a66745eded0b2774aa5fe925947d2df8e95
avcodec/utvideodec: fix assumtation that slice_height >= 1

Fixes out of array read
Fixes: asan_heap-oob_2573085_3783_utvideo_rgba_median.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 7656c4c6e66f8a787d384f027ad824cc1677fda1)

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