# HG changeset patch # User arpi # Date 1005685870 0 # Node ID a3410c946b54fe96e41821bbbb8b017c5429d900 # Parent 1ca86a8dc530bc46c2e9eff6d7c127089363de7a ignore mov detection if first chunk bad diff -r 1ca86a8dc530 -r a3410c946b54 libmpdemux/demux_mov.c --- a/libmpdemux/demux_mov.c Tue Nov 13 21:10:51 2001 +0000 +++ b/libmpdemux/demux_mov.c Tue Nov 13 21:11:10 2001 +0000 @@ -158,6 +158,7 @@ int mov_check_file(demuxer_t* demuxer){ int flags=0; + int no=0; mov_priv_t* priv=malloc(sizeof(mov_priv_t)); mp_msg(MSGT_DEMUX,MSGL_V,"Checking for MOV\n"); @@ -187,11 +188,14 @@ /* unused, if you edit a mov, you can use space provided by free atoms (redefining it) */ break; case MOV_FOURCC('w','i','d','e'): + break; default: + if(no==0) return 0; // first chunk is bad! id = bswap_32(id); mp_msg(MSGT_DEMUX,MSGL_V,"MOV: unknown chunk: %.4s %d\n",&id,(int)len); } if(!stream_skip(demuxer->stream,len-8)) break; + ++no; } if(flags==1)