summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--player/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/misc.c b/player/misc.c
index 6aa58863e8..a5ed361ded 100644
--- a/player/misc.c
+++ b/player/misc.c
@@ -67,7 +67,7 @@ double rel_time_to_abs(struct MPContext *mpctx, struct m_rel_time t)
break;
case REL_TIME_PERCENT:
if (length != 0)
- return length * (t.pos / 100.0);
+ return start + length * (t.pos / 100.0);
break;
case REL_TIME_CHAPTER:
if (chapter_start_time(mpctx, t.pos) != MP_NOPTS_VALUE)