1
mirror of https://github.com/mpv-player/mpv synced 2024-11-18 21:16:10 +01:00

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

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;