summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodeo <[email protected]>2015-05-16 20:16:50 +0000
committerRodeo <[email protected]>2015-05-16 20:16:50 +0000
commit5aa278c113e0178b7ccd39b9339a0dbc50fd3463 (patch)
tree2e4cda24b14197b982798d5ec6047c4ac9acc33d
parentf7575590ab950bd9f60412e1fbd97da752296dbd (diff)
MacGUI: don't double-sanitize encoder names.
*_get_from_name is where the encoder gets sanitized, *_sanitize_name is only required when you need the encoder name instead of its value. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7196 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/HBJob.m2
-rw-r--r--macosx/HBVideo.m3
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)
{