diff options
author | ritsuka <[email protected]> | 2014-12-30 08:32:05 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-12-30 08:32:05 +0000 |
commit | 72531bc27dda83a89049f4c45578fc2aad434c15 (patch) | |
tree | d8ca2cf2a01b98dc7b0a6452902a20fc4764ef8e /macosx/HBJob.m | |
parent | df7f224eb16b327cbd07a4e77d49ded4c987f011 (diff) |
MacGui: hide the iPod 5g check box if the codec is not h.264.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6678 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBJob.m')
-rw-r--r-- | macosx/HBJob.m | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/macosx/HBJob.m b/macosx/HBJob.m index dccd9434c..3e0c8e3ec 100644 --- a/macosx/HBJob.m +++ b/macosx/HBJob.m @@ -128,6 +128,11 @@ NSString *keyContainerTag = @"keyContainerTag"; retval = [NSSet setWithObjects:@"container", nil]; } + if ([key isEqualToString:@"mp4iPodCompatibleEnabled"]) + { + retval = [NSSet setWithObjects:@"container", @"video.encoder", nil]; + } + return retval; } @@ -231,18 +236,21 @@ NSString *keyContainerTag = @"keyContainerTag"; job->chapter_markers = 0; } - if (job->vcodec == HB_VCODEC_X264 || job->vcodec == HB_VCODEC_X265) + if (job->vcodec == HB_VCODEC_X264) { // iPod 5G atom job->ipod_atom = self.mp4iPodCompatible; + } + if (job->vcodec == HB_VCODEC_X264 || job->vcodec == HB_VCODEC_X265) + { // set fastfirstpass if 2-pass and Turbo are enabled if (self.video.twoPass) { job->fastfirstpass = self.video.turboTwoPass; } - // advanced x264 options + // advanced x264/x265 options NSString *tmpString; // translate zero-length strings to NULL for libhb const char *encoder_preset = NULL; @@ -260,7 +268,7 @@ NSString *keyContainerTag = @"keyContainerTag"; } else { - // we are using the x264 preset system + // we are using the x264/x265 preset system if ([(tmpString = self.video.completeTune) length]) { encoder_tune = [tmpString UTF8String]; |