avcodec/rawdec: Check the return code of avpicture_get_size()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 26 Nov 2014 17:56:39 +0000 (18:56 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 6 Jan 2015 17:25:50 +0000 (18:25 +0100)
commite0822b147f25e56c65b48b7717eaa68f249346eb
tree801fa27dbe25772de8276ef478680845459ef771
parent1bfd23d2c934db2f7fc20c1e4de5404869555991
avcodec/rawdec: Check the return code of avpicture_get_size()

Fixes out of array access
Fixes: asan_heap-oob_22388d0_3435_cov_3297128910_small_roll5_FlashCine1.cine
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 1d3a3b9f8907625b361420d48fe05716859620ff)

Conflicts:

libavcodec/rawdec.c
libavcodec/rawdec.c