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+UIAdditions.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+UIAdditions.m')
-rw-r--r-- | macosx/HBJob+UIAdditions.m | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/macosx/HBJob+UIAdditions.m b/macosx/HBJob+UIAdditions.m index 509668e17..e328c95c0 100644 --- a/macosx/HBJob+UIAdditions.m +++ b/macosx/HBJob+UIAdditions.m @@ -11,14 +11,12 @@ - (BOOL)mp4OptionsEnabled { - if (self.container & HB_MUX_MASK_MP4) - { - return YES; - } - else - { - return NO; - } + return ((self.container & HB_MUX_MASK_MP4) != 0); +} + +- (BOOL)mp4iPodCompatibleEnabled +{ + return ((self.container & HB_MUX_MASK_MP4) != 0) && (self.video.encoder & HB_VCODEC_H264_MASK); } - (NSArray *)angles |