diff options
Diffstat (limited to 'mpvcore/mplayer.c')
-rw-r--r-- | mpvcore/mplayer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpvcore/mplayer.c b/mpvcore/mplayer.c index f076faf2b0..917f445556 100644 --- a/mpvcore/mplayer.c +++ b/mpvcore/mplayer.c @@ -3234,7 +3234,7 @@ double get_current_pos_ratio(struct MPContext *mpctx, bool use_range) } if (use_range) { if (mpctx->opts->play_frames > 0) - ans = max(ans, 1.0 - + ans = MPMAX(ans, 1.0 - mpctx->max_frames / (double) mpctx->opts->play_frames); } return ans; |