Fix crash when max_ref_frames was out of range.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 9 Apr 2009 15:17:03 +0000 (15:17 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 9 Apr 2009 15:17:03 +0000 (15:17 +0000)
commitf0812be883221eded78011893e6ad50af2f6b129
treea45a18fe56d7a85301cf5317593939dd451d058c
parent985fdd534f29e5c0e05e47216bb2ae9b8c353895
Fix crash when max_ref_frames was out of range.
This might have been exploitable.
Fixes first crash of issue840.

Originally committed as revision 18388 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/snow.c