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>
Sun, 21 Dec 2014 03:40:34 +0000 (04:40 +0100)
commitc1e048dffea161d7c8ab37b55bc4f36ae1369c1a
treea6612474e34a55fd60b299e2f2d0810bbcd12074
parentce35c10b88d1301fc233825c436199f3cf1bc9f2
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