summaryrefslogtreecommitdiffstats
path: root/libhb/decsrtsub.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-01-04 11:47:17 -0700
committerJohn Stebbins <[email protected]>2017-01-04 11:48:31 -0700
commit17ab380b65a4843e260300924fe95f7eff98e6ff (patch)
treec9a53d08e9babcbd5390915d918c7e401d7759d0 /libhb/decsrtsub.c
parent557a67c170c1c2c5ef275b9e91e5facc97ecaa39 (diff)
decsrtsub: fix extra blank lines
This only happened with embedded UTF8 subtitles in mkv.
Diffstat (limited to 'libhb/decsrtsub.c')
-rw-r--r--libhb/decsrtsub.c2
1 files changed, 1 insertions, 1 deletions
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++;
}