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:
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
Block a user