mirror of https://github.com/mpv-player/mpv
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:
parent
86aa946915
commit
65bce6d1ca
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue