From 2cc7a61bdfdc77c821eb091387df084dbc366045 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Wed, 24 Feb 2021 16:23:01 +0100 Subject: decavsub: fix SSA hardsub when the stream contains subtitle lines with duration equals to zero. Allow setting the subtitles packet duration to 0 if the source format is not PGS. Fixed #3424. --- libhb/decavsub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhb/decavsub.c b/libhb/decavsub.c index 22a422eef..bc48a5f5d 100644 --- a/libhb/decavsub.c +++ b/libhb/decavsub.c @@ -309,7 +309,7 @@ int decavsubWork( hb_avsub_context_t * ctx, avp.data = in->data; avp.size = in->size; avp.pts = in->s.start; - if (in->s.duration > 0) + if (in->s.duration > 0 || ctx->subtitle->source != PGSSUB) { duration = in->s.duration; } -- cgit v1.2.3