From f5c3af1bda6b713c8d7aa625fffabbe9a4ef0d98 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Fri, 19 Jan 2018 16:19:10 -0800 Subject: [PATCH] obs-ffmpeg: Fix signed mismatch warning --- plugins/obs-ffmpeg/obs-ffmpeg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/obs-ffmpeg/obs-ffmpeg.c b/plugins/obs-ffmpeg/obs-ffmpeg.c index abcb87299..33ccd3bb1 100644 --- a/plugins/obs-ffmpeg/obs-ffmpeg.c +++ b/plugins/obs-ffmpeg/obs-ffmpeg.c @@ -185,8 +185,8 @@ static bool nvenc_supported(void) NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS params = {0}; NV_ENCODE_API_FUNCTION_LIST nv = {0}; GUID *guids = NULL; + uint32_t count; int nv_result; - int count; #define GET_CUDA_FUNC(func) \ t ## func *func = os_dlsym(cudalib, #func); \ @@ -281,7 +281,7 @@ static bool nvenc_supported(void) goto cleanup3; } - for (int i = 0; i < count; i++) { + for (uint32_t i = 0; i < count; i++) { int ret = memcmp(&guids[i], &NV_ENC_CODEC_H264_GUID, sizeof(*guids)); if (ret == 0) {