From d8435fd9c6f0a039d4e9c5661a0cc0e727fa30e3 Mon Sep 17 00:00:00 2001 From: gpoirier Date: Wed, 8 Nov 2006 23:54:21 +0000 Subject: [PATCH] Fix crash when attempting to seek in a streamed unseekable stream, like mms://a632.v3306a.c3306.e.vm.akamaistream.net/7/632/3306/v1/multith.download.akamai.com/3306/2005/COMEDIE/1144-0186-001.wmv patch by alexandre % alex14fr A yahoo P fr % git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20808 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_asf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libmpdemux/demux_asf.c b/libmpdemux/demux_asf.c index 8ce7820144..b0bdffcb9a 100644 --- a/libmpdemux/demux_asf.c +++ b/libmpdemux/demux_asf.c @@ -587,6 +587,8 @@ static demuxer_t* demux_open_asf(demuxer_t* demuxer) sh_audio->format=sh_audio->wf->wFormatTag; } } + if(!demuxer->stream->seek) + demuxer->seekable=0; return demuxer; }