[Mplayer-cvslog] CVS: main/libmpdemux demux_mkv.cpp,1.10,1.11
Moritz Bunkus CVS
mosu at mplayerhq.hu
Sun May 11 21:34:17 CEST 2003
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv13417
Modified Files:
demux_mkv.cpp
Log Message:
Removed the abs function as someone reported compilation problems under MacOS.
Index: demux_mkv.cpp
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mkv.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- demux_mkv.cpp 11 May 2003 19:11:10 -0000 1.10
+++ demux_mkv.cpp 11 May 2003 19:33:46 -0000 1.11
@@ -1917,9 +1917,9 @@
cluster_pos = mkv_d->cluster_positions[i];
min_diff = diff;
}
- } else if (abs(diff) < min_diff) {
+ } else if ((diff < 0 ? -1 * diff : diff) < min_diff) {
cluster_pos = mkv_d->cluster_positions[i];
- min_diff = abs(diff);
+ min_diff = diff < 0 ? -1 * diff : diff;
}
}
if (min_diff != 0x0FFFFFFFL) {
More information about the MPlayer-cvslog
mailing list