mirror of https://github.com/mpv-player/mpv
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:
parent
8a3d3f57ee
commit
7cd95a4b4b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue