From 17ab380b65a4843e260300924fe95f7eff98e6ff Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Wed, 4 Jan 2017 11:47:17 -0700 Subject: [PATCH] decsrtsub: fix extra blank lines This only happened with embedded UTF8 subtitles in mkv. --- libhb/decsrtsub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhb/decsrtsub.c b/libhb/decsrtsub.c index 8a843e5fe..6835e2e16 100644 --- a/libhb/decsrtsub.c +++ b/libhb/decsrtsub.c @@ -180,7 +180,7 @@ void hb_srt_to_ssa(hb_buffer_t *sub_in, int line) ssa = (char*)sub_in->data; if (srt[ii] == '\r') { - if (srt[ii] == '\n') + if (srt[ii + 1] == '\n') { ii++; } -- 2.40.0