Mercurial > mplayer.hg
changeset 17598:4b8193d51bda
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)
author | reimar |
---|---|
date | Sun, 12 Feb 2006 09:58:27 +0000 |
parents | a3a4f7408f90 |
children | c7d0f6322721 |
files | libmpdemux/demux_asf.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_asf.c Sun Feb 12 09:28:09 2006 +0000 +++ b/libmpdemux/demux_asf.c Sun Feb 12 09:58:27 2006 +0000 @@ -446,7 +446,8 @@ 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;