Don't use free()d pointer CID 260

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18012 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp 2006-04-01 23:50:30 +00:00
parent 8a3d3f57ee
commit 7cd95a4b4b
1 changed files with 1 additions and 1 deletions

View File

@ -123,8 +123,8 @@ int asf_check_header(demuxer_t *demuxer){
return 0; // not ASF guid
}
if(asf->header.cno>256){
free(asf);
mp_msg(MSGT_HEADER,MSGL_V,"ASF_check: invalid subchunks_no %d\n",(int) asf->header.cno);
free(asf);
return 0; // invalid header???
}
demuxer->priv = asf;