Add a new SSA -> Text converter.

This commit is contained in:
Damiano Galassi committed 2017-10-02 19:10:14 +02:00
1 parent 826704ac9c
commit 0908670715
11 files changed
+562 -160

No files matched your search

+13
View File
@@ -15,6 +15,7 @@
#import "MP42Sample.h"
#import "MP42AudioConverter.h"
#import "MP42BitmapSubConverter.h"
#import "MP42TextSubConverter.h"
#import "mp4v2.h"
#import "MP42FormatUtilites.h"
@@ -129,6 +130,18 @@
track.converter = subConverter;
format = track.conversionSettings.format;
} else if ([track isMemberOfClass:[MP42SubtitleTrack class]] && track.conversionSettings) {
MP42TextSubConverter *subConverter = [[MP42TextSubConverter alloc] initWithTrack:(MP42SubtitleTrack *)track
error:outError];
if (subConverter == nil) {
if (outError && *outError) {
[_logger writeErrorToLog:*outError];
}
[unsupportedTracks addObject:track];
continue;
}
track.converter = subConverter;
format = track.conversionSettings.format;
}