diff options
Diffstat (limited to 'player/misc.c')
-rw-r--r-- | player/misc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/player/misc.c b/player/misc.c index c3765e5055..f6a63ec7ef 100644 --- a/player/misc.c +++ b/player/misc.c @@ -123,6 +123,9 @@ bool get_ab_loop_times(struct MPContext *mpctx, double t[2]) t[0] = opts->ab_loop[0]; t[1] = opts->ab_loop[1]; + if (!opts->ab_loop_count) + return false; + if (t[0] == MP_NOPTS_VALUE || t[1] == MP_NOPTS_VALUE || t[0] == t[1]) return false; |