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>
Sun, 3 Mar 2013 02:02:34 +0000 (03:02 +0100)
commit1ddb0b6fa0bd46b730dc60240f738597cadfe1e0
tree1f4434d0b8f761df4b97157862ee4c58b699853f
parente35da91b52cc09d6e4f2a7191cfbc8127e2eda51
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>
(cherry picked from commit 8a6449167a6da8cb747cfe3502ae86ffaac2ed48)

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