summaryrefslogtreecommitdiffstats
path: root/video/out/gpu/lcms.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/gpu/lcms.h')
-rw-r--r--video/out/gpu/lcms.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/gpu/lcms.h b/video/out/gpu/lcms.h
index d0b0fe5b89..30a6c54e83 100644
--- a/video/out/gpu/lcms.h
+++ b/video/out/gpu/lcms.h
@@ -44,6 +44,8 @@ bool gl_lcms_has_changed(struct gl_lcms *p, enum pl_color_primaries prim,
static inline bool gl_parse_3dlut_size(const char *arg, int *p1, int *p2, int *p3)
{
+ if (!arg)
+ return false;
if (!strcmp(arg, "auto")) {
*p1 = *p2 = *p3 = 0;
return true;