avcodec_decode_audio4: check got_frame_ptr before handling initial skip
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 21 Feb 2013 21:00:19 +0000 (22:00 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 21 Feb 2013 21:01:14 +0000 (22:01 +0100)
commit8a6449167a6da8cb747cfe3502ae86ffaac2ed48
tree9eeb1ea6dd521d048853531964db832c487a6031
parent47619e41c4a1a39cfa04858c0ad629da30ee405c
avcodec_decode_audio4: check got_frame_ptr before handling initial skip

Fixes out of array accesses

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/utils.c