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
1 changed files with 2 additions and 1 deletions

View File

@ -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;