[MPlayer-users] trying to compile in matroska support.

Moritz Bunkus moritz at bunkus.org
Fri Jan 30 11:16:36 CET 2004


Heya,

> did you ever figure out what was wrong?

Could you please test the attached patch and see if it fixes things for
you?

Thanks.

-- 
If Darl McBride was in charge, he'd probably make marriage
unconstitutional too, since clearly it de-emphasizes the commercial
nature of normal human interaction, and probably is a major impediment
to the commercial growth of prostitution. - Linus Torvalds
-------------- next part --------------
Index: demux_mkv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mkv.c,v
retrieving revision 1.6
diff -u -r1.6 demux_mkv.c
--- demux_mkv.c	27 Jan 2004 06:02:29 -0000	1.6
+++ demux_mkv.c	30 Jan 2004 10:14:33 -0000
@@ -1241,9 +1241,12 @@
         continue;
 
       saved_pos = stream_tell (s);
-      if (!stream_seek (s, mkv_d->segment_start + seek_pos))
+      /* stream_seek will set eof and do other things to s if we seek */
+      /* past the end of the file, so avoid that if possible. */
+      if ((mkv_d->segment_start + seek_pos) < demuxer->movi_end &&
+          !stream_seek (s, mkv_d->segment_start + seek_pos))
         res = 1;
-      else
+      else if ((mkv_d->segment_start + seek_pos) < demuxer->movi_end)
         {
           if (ebml_read_id (s, &il) != seek_id)
             res = 1;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20040130/e9b9fba7/attachment.pgp>


More information about the MPlayer-users mailing list