From 43f12d1fbddcbbe261f4429ddd8db6a9200b3de1 Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Tue, 4 Apr 2023 23:07:37 +0200 Subject: [PATCH] mac-videotoolbox: Fix compile issue if HEVC is disabled The format is only checked for 10-bit capable formats, which in this case applies to HEVC only. When HEVC is disabled, then `format` is not checked and becomes an unused variable otherwise. --- plugins/mac-videotoolbox/encoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/mac-videotoolbox/encoder.c b/plugins/mac-videotoolbox/encoder.c index 893dffb72..981f11f7d 100644 --- a/plugins/mac-videotoolbox/encoder.c +++ b/plugins/mac-videotoolbox/encoder.c @@ -148,6 +148,8 @@ static CFStringRef obs_to_vt_profile(CMVideoCodecType codec_type, } #endif // macOS 12.3 return kVTProfileLevel_HEVC_Main_AutoLevel; +#else + (void)format; #endif // ENABLE_HEVC } else { return kVTProfileLevel_H264_Baseline_AutoLevel;