1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-11 17:37:23 +00:00

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:
reimar 2006-02-12 09:58:27 +00:00
parent 7bb8f38da8
commit 955fbdff3f

View File

@ -446,7 +446,8 @@ static demuxer_t* demux_open_asf(demuxer_t* demuxer)
sh_video_t *sh_video=NULL; sh_video_t *sh_video=NULL;
//---- ASF header: //---- ASF header:
read_asf_header(demuxer); if (!read_asf_header(demuxer))
return NULL;
stream_reset(demuxer->stream); stream_reset(demuxer->stream);
stream_seek(demuxer->stream,demuxer->movi_start); stream_seek(demuxer->stream,demuxer->movi_start);
// demuxer->idx_pos=0; // demuxer->idx_pos=0;