gifdec: check that the last keyframe exists and has been successfully parsed.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 24 Jan 2013 03:17:58 +0000 (04:17 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 24 Jan 2013 03:18:56 +0000 (04:18 +0100)
commit46cb61819d867961e8f2052a8f13bcf2027d484f
tree87703e208a239a83fd707fc56f6d009ac36b4004
parentb53ed19aa74c447ca245702e2460534509be58fa
gifdec: check that the last keyframe exists and has been successfully parsed.

Prevents inconsistent state and null pointer dereference

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