mirror of https://github.com/mpv-player/mpv
we cannot continue without a crash when read_asf_header fails, since some
memory is allocated in that function (ugly!!). Fixes bug #450, patch by Mikulas Patocka (mikulas at artax karlin mff cuni cz) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17599 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7bb8f38da8
commit
955fbdff3f
|
@ -446,7 +446,8 @@ static demuxer_t* demux_open_asf(demuxer_t* demuxer)
|
|||
sh_video_t *sh_video=NULL;
|
||||
|
||||
//---- ASF header:
|
||||
read_asf_header(demuxer);
|
||||
if (!read_asf_header(demuxer))
|
||||
return NULL;
|
||||
stream_reset(demuxer->stream);
|
||||
stream_seek(demuxer->stream,demuxer->movi_start);
|
||||
// demuxer->idx_pos=0;
|
||||
|
|
Loading…
Reference in New Issue