summaryrefslogtreecommitdiffstats
path: root/macosx/HBVideo+UIAdditions.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBVideo+UIAdditions.m')
-rw-r--r--macosx/HBVideo+UIAdditions.m11
1 files changed, 10 insertions, 1 deletions
diff --git a/macosx/HBVideo+UIAdditions.m b/macosx/HBVideo+UIAdditions.m
index 7de227676..cd07bde11 100644
--- a/macosx/HBVideo+UIAdditions.m
+++ b/macosx/HBVideo+UIAdditions.m
@@ -69,7 +69,16 @@
- (BOOL)fastDecodeSupported
{
- return (self.encoder == HB_VCODEC_X264 || self.encoder == HB_VCODEC_X265);
+ const char * const *tunes = hb_video_encoder_get_tunes(self.encoder);
+
+ for (int i = 0; tunes != NULL && tunes[i] != NULL; i++)
+ {
+ if (!strcasecmp(tunes[i], "fastdecode"))
+ {
+ return YES;
+ }
+ }
+ return NO;
}
- (BOOL)turboTwoPassSupported