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>
Wed, 26 Nov 2014 18:01:17 +0000 (19:01 +0100)
commit1d3a3b9f8907625b361420d48fe05716859620ff
tree9eb86f312fb38b09b468eddf4c4cdb777d6642e9
parent1b5d11240692025f036e945bc37968735679320a
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>
libavcodec/rawdec.c