[Mplayer-cvslog] CVS: main/libmpdemux demux_mkv.cpp,1.30,1.31
Moritz Bunkus CVS
mosu at mplayerhq.hu
Fri Sep 12 23:47:55 CEST 2003
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv27089
Modified Files:
demux_mkv.cpp
Log Message:
Improved backwards seeking for small seek steps. Patch by matthieu <mat100 at ifrance.com>.
Index: demux_mkv.cpp
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mkv.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- demux_mkv.cpp 10 Sep 2003 12:50:29 -0000 1.30
+++ demux_mkv.cpp 12 Sep 2003 21:47:28 -0000 1.31
@@ -1,3 +1,9 @@
+// Matroska demuxer
+// written by Moritz Bunkus <moritz at bunkus.org>
+// License: GPL of course ;)
+
+// $Id$
+
extern "C" {
#include "config.h"
}
@@ -2416,9 +2422,7 @@
if (!index->entries[k].is_key)
continue;
diff = target_timecode - (int64_t)index->entries[k].timecode;
- if (diff < 0)
- diff *= -1;
- if (diff < min_diff) {
+ if ((diff > 0) && (diff < min_diff)) {
min_diff = diff;
entry = & index->entries[k];
}
More information about the MPlayer-cvslog
mailing list