From a97f8b71286df1f7ff8a0c2a1efd07916441d0ec Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Tue, 26 Oct 2021 16:14:31 +0200 Subject: [PATCH] mac-vth264: Fix compiler warnings --- plugins/mac-vth264/encoder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/mac-vth264/encoder.c b/plugins/mac-vth264/encoder.c index 869a22916..4fec74de7 100644 --- a/plugins/mac-vth264/encoder.c +++ b/plugins/mac-vth264/encoder.c @@ -832,7 +832,8 @@ static bool vt_h264_extra_data(void *data, uint8_t **extra_data, size_t *size) static const char *vt_h264_getname(void *data) { - const char *disp_name = vt_encoders.array[(int)data].disp_name; + uintptr_t encoder_id = (uintptr_t)data; + const char *disp_name = vt_encoders.array[(int)encoder_id].disp_name; if (strcmp("Apple H.264 (HW)", disp_name) == 0) { return obs_module_text("VTH264EncHW");