diff options
author | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-08 23:54:21 +0000 |
---|---|---|
committer | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-11-08 23:54:21 +0000 |
commit | d8435fd9c6f0a039d4e9c5661a0cc0e727fa30e3 (patch) | |
tree | 86c321cd09ed967676543edcab3c79c5b809c03d /libmpdemux | |
parent | b31b19858f81aa5501772178487ed75b63df12d1 (diff) |
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
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_asf.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |