ffv1dec: Require a valid keyframe for decoding non keyframes.
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 22 Apr 2012 11:56:07 +0000 (13:56 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 22 Apr 2012 12:58:28 +0000 (14:58 +0200)
commitabec6549ae1e86fdf89dbab8a8abca8eb7205c6e
tree070a49406660c9de90e7532754816db13802cc01
parent23a6e4749fa7134ce411ce186062f70f9d348603
ffv1dec: Require a valid keyframe for decoding non keyframes.

Before this the context could become inconsistent, this lead to a null ptr
dereference.

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