Check for seek failures in avi_load_index, otherwise if the index offset
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Wed, 26 Aug 2009 08:38:44 +0000 (08:38 +0000)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Wed, 26 Aug 2009 08:38:44 +0000 (08:38 +0000)
commit44ed34b79097b972095e7c9efae32a13b4bc51dc
treeea9415e5188178963e5ac09d5893b72ddb5e0f59
parentd5a30f86d470454001bd0dc0da61504d05fab9e9
Check for seek failures in avi_load_index, otherwise if the index offset
is invalid (e.g. truncated file) we might end up reading the whole file
since trying to seek beyond the end of file does not set EOF.

Originally committed as revision 19709 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/avidec.c