Removed the abs function as someone reported compilation problems under MacOS.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10100 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
mosu 2003-05-11 19:33:46 +00:00
parent 86aa946915
commit 65bce6d1ca
1 changed files with 2 additions and 2 deletions

View File

@ -1917,9 +1917,9 @@ extern "C" void demux_mkv_seek(demuxer_t *demuxer, float rel_seek_secs,
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) {