lavfi/frei0r: Fix a union member type and remove an unneeded cast.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Tue, 23 Apr 2019 21:09:01 +0000 (23:09 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Wed, 24 Apr 2019 22:29:09 +0000 (00:29 +0200)
libavfilter/vf_frei0r.c

index 165fbd7..5d38405 100644 (file)
@@ -93,7 +93,7 @@ static int set_param(AVFilterContext *ctx, f0r_param_info_t info, int index, cha
         double d;
         f0r_param_color_t col;
         f0r_param_position_t pos;
-        f0r_param_string *str;
+        f0r_param_string str;
     } val;
     char *tail;
     uint8_t rgba[4];
@@ -127,7 +127,7 @@ static int set_param(AVFilterContext *ctx, f0r_param_info_t info, int index, cha
         break;
 
     case F0R_PARAM_STRING:
-        val.str = (f0r_param_string *)param;
+        val.str = param;
         break;
     }