[MPlayer-dev-eng] [PATCH] Don't break timecode reordering when seeking backwards in mkv

Sam Dennis sam at malfunction.screaming.net
Thu May 19 06:15:29 CEST 2005


For matroska, max_pts needs to be reset in a seeking operation or the
timecode reordering logic will be stuck in the future should the user
seek backwards.

-- 
++acr@,ka"
-------------- next part --------------
Index: libmpdemux/demux_mkv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mkv.c,v
retrieving revision 1.42
diff -u -w -p -r1.42 demux_mkv.c
--- libmpdemux/demux_mkv.c	14 May 2005 06:52:25 -0000	1.42
+++ libmpdemux/demux_mkv.c	19 May 2005 04:00:54 -0000
@@ -458,6 +458,7 @@ free_cached_dps (demuxer_t *demuxer)
       track->cached_dps = NULL;
       track->num_cached_dps = 0;
       track->num_allocated_dps = 0;
+      track->max_pts = 0;
     }
 }
 


More information about the MPlayer-dev-eng mailing list