[MPlayer-dev-eng] [PATCH] stdin broken with seek in http-streams patch

eviv bulgroz ebulgroz at yahoo.com
Sun Feb 22 02:37:56 CET 2004


When reading from non-seekable source streams (stdin) mplayer/mencoder is now broken with the
latest "Seek in http-streams" patch. Try:

cat myovie | mplayer - 

Since STREAM_SEEK is defined as:
stream.h:37:#define STREAM_SEEK  (STREAM_SEEK_BW|STREAM_SEEK_FW)

and STREAM_SEEK_FW is set for stdin streams:
stream_file.c:113:    stream->flags |= STREAM_SEEK_FW;

it is necessary to check for STREAM_SEEK_BW instead of STREAM_SEEK when forcing index_mode=-2
(reading from non-seekable source (stdin)).

Please apply the following patch:

diff -u -r1.59 demux_avi.c
--- demux_avi.c	17 Feb 2004 12:30:44 -0000	1.59
+++ demux_avi.c	22 Feb 2004 01:11:20 -0000
@@ -449,7 +449,7 @@
   demuxer->priv=(void*)priv;
 
   //---- AVI header:
-  read_avi_header(demuxer,(demuxer->stream->flags & STREAM_SEEK)?index_mode:-2);
+  read_avi_header(demuxer,(demuxer->stream->flags & STREAM_SEEK_BW)?index_mode:-2);
   
   if(demuxer->audio->id>=0 && !demuxer->a_streams[demuxer->audio->id]){
       mp_msg(MSGT_DEMUX,MSGL_WARN,"AVI: invalid audio stream ID: %d - ignoring
(nosound)\n",demuxer->audio->id);


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools




More information about the MPlayer-dev-eng mailing list