Merge pull request #776 from IanDBird/srt-fix

Ignore extra returns in Subrip parsing
This commit is contained in:
ojw28 2015-09-09 14:31:49 +01:00
commit e13e23e3e0

View File

@ -58,6 +58,10 @@ public final class SubripParser implements SubtitleParser {
String currentLine;
while ((currentLine = reader.readLine()) != null) {
// Skip blank lines.
if (currentLine.length() == 0)
continue;
// Parse the numeric counter as a sanity check.
try {
Integer.parseInt(currentLine);