changeset 10099:71d703e35ff3

Removed the abs function as someone reported compilation problems under MacOS.
author mosu
date Sun, 11 May 2003 19:33:46 +0000
parents ebbe39bb55ab
children 00c091706a73
files libmpdemux/demux_mkv.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.cpp	Sun May 11 19:11:10 2003 +0000
+++ b/libmpdemux/demux_mkv.cpp	Sun May 11 19:33:46 2003 +0000
@@ -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) {