diff options
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/HBJob.m | 2 | ||||
-rw-r--r-- | macosx/HBVideo.m | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/macosx/HBJob.m b/macosx/HBJob.m index 921eb4304..021c53640 100644 --- a/macosx/HBJob.m +++ b/macosx/HBJob.m @@ -65,7 +65,7 @@ NSString *HBChaptersChangedNotification = @"HBChaptersChangedNotification"; NSDictionary *content = preset.content; - self.container = hb_container_get_from_name(hb_container_sanitize_name([content[@"FileFormat"] UTF8String])); + self.container = hb_container_get_from_name([content[@"FileFormat"] UTF8String]); // MP4 specifics options. self.mp4HttpOptimize = [content[@"Mp4HttpOptimize"] boolValue]; diff --git a/macosx/HBVideo.m b/macosx/HBVideo.m index 490bb29be..b1a002bba 100644 --- a/macosx/HBVideo.m +++ b/macosx/HBVideo.m @@ -504,8 +504,7 @@ NSString * const HBVideoChangedNotification = @"HBVideoChangedNotification"; self.notificationsEnabled = NO; // map legacy encoder names via libhb. - const char *strValue = hb_video_encoder_sanitize_name([preset[@"VideoEncoder"] UTF8String]); - self.encoder = hb_video_encoder_get_from_name(strValue); + self.encoder = hb_video_encoder_get_from_name([preset[@"VideoEncoder"] UTF8String]); if (self.encoder == HB_VCODEC_X264 || self.encoder == HB_VCODEC_X265) { |