More cosmetics

This commit is contained in:
galad87 committed 2015-08-27 18:28:54 +02:00
1 parent a074653ec1
commit f6b23874f6
27 files changed
+1018 -933

No files matched your search

+1 -1
View File
@@ -386,7 +386,7 @@ static int ParseForced(NSString *str)
int LoadSRTFromPath(NSString *path, SBSubSerializer *ss, MP4Duration *duration)
{
NSMutableString *srt = STStandardizeStringNewlines(STLoadFileWithUnknownEncoding(path));
if (!srt) return 0;
if (!srt.length) return 0;
if ([srt characterAtIndex:0] == 0xFEFF) [srt deleteCharactersInRange:NSMakeRange(0,1)];
if ([srt characterAtIndex:[srt length]-1] != '\n') [srt appendFormat:@"%c",'\n'];