]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_colorkey_opencl.c
avfilter: Constify all AVFilters
[ffmpeg] / libavfilter / vf_colorkey_opencl.c
index 46a0454fbd741cf2db8a3f8f49326cea1e5e9e6d..cd312ea53e52ec08da0afad632f8fd503cd998e4 100644 (file)
@@ -222,7 +222,7 @@ static const AVFilterPad colorkey_opencl_outputs[] = {
 #define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM
 
 static const AVOption colorkey_opencl_options[] = {
-    { "color", "set the colorkey key color", OFFSET(colorkey_rgba), AV_OPT_TYPE_COLOR, { .str = "black" }, CHAR_MIN, CHAR_MAX, FLAGS },
+    { "color", "set the colorkey key color", OFFSET(colorkey_rgba), AV_OPT_TYPE_COLOR, { .str = "black" }, 0, 0, FLAGS },
     { "similarity", "set the colorkey similarity value", OFFSET(similarity), AV_OPT_TYPE_FLOAT, { .dbl = 0.01 }, 0.01, 1.0, FLAGS },
     { "blend", "set the colorkey key blend value", OFFSET(blend), AV_OPT_TYPE_FLOAT, { .dbl = 0.0 }, 0.0, 1.0, FLAGS },
     { NULL }
@@ -230,7 +230,7 @@ static const AVOption colorkey_opencl_options[] = {
 
 AVFILTER_DEFINE_CLASS(colorkey_opencl);
 
-AVFilter ff_vf_colorkey_opencl = {
+const AVFilter ff_vf_colorkey_opencl = {
     .name           = "colorkey_opencl",
     .description    = NULL_IF_CONFIG_SMALL("Turns a certain color into transparency. Operates on RGB colors."),
     .priv_size      = sizeof(ColorkeyOpenCLContext),