diff options
author | Damiano Galassi <[email protected]> | 2021-02-24 16:23:01 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2021-02-24 16:23:01 +0100 |
commit | 2cc7a61bdfdc77c821eb091387df084dbc366045 (patch) | |
tree | 2bcbf2835139f3710e547486121ad4e69acce7f0 | |
parent | a829a6f6af9539c34c9865239a54a6e51d7a7c41 (diff) |
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.
-rw-r--r-- | libhb/decavsub.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |