Commit a3c6b7ff authored by Raphael Graf's avatar Raphael Graf Committed by Paul B Mahol

frei0r: handle string params

This is needed for some of the frei0r filters (facebl0r and facedetect) which accept string parameters.

Fixes the issue described here:
http://www.ffmpeg-archive.org/Unable-to-set-ffmpeg-frei0r-facedetect-filter-parameter-td4680190.htmlSigned-off-by: 's avatarRaphael Graf <r@undefined.ch>
parent d71dfc08
...@@ -93,6 +93,7 @@ static int set_param(AVFilterContext *ctx, f0r_param_info_t info, int index, cha ...@@ -93,6 +93,7 @@ static int set_param(AVFilterContext *ctx, f0r_param_info_t info, int index, cha
double d; double d;
f0r_param_color_t col; f0r_param_color_t col;
f0r_param_position_t pos; f0r_param_position_t pos;
f0r_param_string *str;
} val; } val;
char *tail; char *tail;
uint8_t rgba[4]; uint8_t rgba[4];
...@@ -126,6 +127,11 @@ static int set_param(AVFilterContext *ctx, f0r_param_info_t info, int index, cha ...@@ -126,6 +127,11 @@ static int set_param(AVFilterContext *ctx, f0r_param_info_t info, int index, cha
break; break;
} }
case F0R_PARAM_STRING:
val.str = param;
break;
}
s->set_param_value(s->instance, &val, index); s->set_param_value(s->instance, &val, index);
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment