Fix crash when max_ref_frames was out of range.
authorReinhard Tartler <siretart@tauware.de>
Thu, 11 Feb 2010 16:22:59 +0000 (16:22 +0000)
committerReinhard Tartler <siretart@tauware.de>
Thu, 11 Feb 2010 16:22:59 +0000 (16:22 +0000)
commit9d442d2d7d24cae9eeaba1f8eee7ec58a4e7d272
treeb00544d9dd7816be220d5c07c15914e65259c273
parentafc97d47358f8c4ce0e9989bcd308806d3770409
Fix crash when max_ref_frames was out of range.
This might have been exploitable.
Fixes first crash of issue840.

backport r18388 by michael

Originally committed as revision 21757 to svn://svn.ffmpeg.org/ffmpeg/branches/0.5
libavcodec/snow.c