diff options
author | Justin Bull <[email protected]> | 2019-02-13 09:52:48 -0500 |
---|---|---|
committer | John Stebbins <[email protected]> | 2019-02-13 06:52:48 -0800 |
commit | d0e37ca0d75fbcef5bdf47aafe8543e262314ec5 (patch) | |
tree | e2766be1f7734793f992bf4c1dbd4ede1b97e086 /macosx/HBJob+UIAdditions.m | |
parent | 7cc7d562b6c67c875b684a48451910af37b3fda7 (diff) |
Add WebM support (#1822)
Note that since webm has no official subtitle support, only burned in subtitles can be used with this muxer at this time.
Diffstat (limited to 'macosx/HBJob+UIAdditions.m')
-rw-r--r-- | macosx/HBJob+UIAdditions.m | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/macosx/HBJob+UIAdditions.m b/macosx/HBJob+UIAdditions.m index 4c1cdc8ae..56c721271 100644 --- a/macosx/HBJob+UIAdditions.m +++ b/macosx/HBJob+UIAdditions.m @@ -78,6 +78,10 @@ static NSDictionary *shortHeightAttr; { title = HBKitLocalizedString(@"MKV File", @"HBJob -> Format display name"); } + else if (container->format & HB_MUX_MASK_WEBM) + { + title = HBKitLocalizedString(@"WebM File", @"HBJob -> Format display name"); + } else { title = @(container->name); @@ -922,6 +926,10 @@ static NSDictionary *shortHeightAttr; { return HBKitLocalizedString(@"MKV File", @"HBJob -> Format display name"); } + else if (container & HB_MUX_MASK_WEBM) + { + return HBKitLocalizedString(@"WebM File", @"HBJob -> Format display name"); + } else { const char *name = hb_container_get_name(container); @@ -951,6 +959,10 @@ static NSDictionary *shortHeightAttr; { return @(HB_MUX_AV_MKV); } + else if ([value isEqualToString:HBKitLocalizedString(@"WebM File", @"HBJob -> Format display name")]) + { + return @(HB_MUX_AV_WEBM); + } return @(hb_container_get_from_name([value UTF8String])); } |