demux_mov: fix possible hang on invalid input

len < 8 is also invalid for 64-bit codec chunk size.
Previous code could cause hang.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32708 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-12-12 16:50:13 +00:00 committed by Uoti Urpala
parent 7e24b8edb4
commit 21367beef1
1 changed files with 1 additions and 1 deletions

View File

@ -367,7 +367,7 @@ static int mov_check_file(demuxer_t* demuxer){
goto skip_chunk;
}
#endif
else if(len<8) break; // invalid chunk
if(len<8) break; // invalid chunk
switch(id){
case MOV_FOURCC('f','t','y','p'): {