diff options
Diffstat (limited to 'player/misc.c')
-rw-r--r-- | player/misc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/player/misc.c b/player/misc.c index a9174c41a9..bd65fb9d5b 100644 --- a/player/misc.c +++ b/player/misc.c @@ -90,6 +90,12 @@ double get_play_end_pts(struct MPContext *mpctx) if (cend != MP_NOPTS_VALUE && (end == MP_NOPTS_VALUE || cend < end)) end = cend; } + if (mpctx->ab_loop_clip && opts->ab_loop[1] != MP_NOPTS_VALUE && + opts->ab_loop[1] > opts->ab_loop[0]) + { + if (end == MP_NOPTS_VALUE || end > opts->ab_loop[1]) + end = opts->ab_loop[1]; + } return end; } |