From dad1e3a01b8af298d1197df6f637cd2ddbf1add4 Mon Sep 17 00:00:00 2001 From: derrod Date: Thu, 12 Jan 2017 07:27:23 +0100 Subject: [PATCH] obs-x264: ignore opencl param Silently ignores opencl parameter for x264 to protect users following bad youtube guides. --- plugins/obs-x264/obs-x264.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/obs-x264/obs-x264.c b/plugins/obs-x264/obs-x264.c index 27bbe8aa7..782b540b6 100644 --- a/plugins/obs-x264/obs-x264.c +++ b/plugins/obs-x264/obs-x264.c @@ -300,7 +300,8 @@ static inline void set_param(struct obs_x264 *obsx264, const char *param) strcmp(name, "fps") != 0 && strcmp(name, "force-cfr") != 0 && strcmp(name, "width") != 0 && - strcmp(name, "height") != 0) { + strcmp(name, "height") != 0 && + strcmp(name, "opencl") != 0) { if (x264_param_parse(&obsx264->params, name, val) != 0) warn("x264 param: %s failed", param); }