diff options
author | Raphael Graf <r@undefined.ch> | 2018-08-29 12:29:16 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-08-30 09:57:25 +0200 |
commit | a3c6b7ff5903b8a044e30edaaa0de00e70517538 (patch) | |
tree | ba33bfcfe340f7a051c2e20e47eb5d8f10fa1d91 | |
parent | d71dfc087bce47197209a7e33640853cbb986775 (diff) | |
download | ffmpeg-a3c6b7ff5903b8a044e30edaaa0de00e70517538.tar.gz |
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.html
Signed-off-by: Raphael Graf <r@undefined.ch>
-rw-r--r-- | libavfilter/vf_frei0r.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/vf_frei0r.c b/libavfilter/vf_frei0r.c index 8aeac08519..67b2f374c3 100644 --- a/libavfilter/vf_frei0r.c +++ b/libavfilter/vf_frei0r.c @@ -93,6 +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; } val; char *tail; uint8_t rgba[4]; @@ -126,6 +127,11 @@ static int set_param(AVFilterContext *ctx, f0r_param_info_t info, int index, cha break; } + case F0R_PARAM_STRING: + val.str = param; + break; + } + s->set_param_value(s->instance, &val, index); return 0; |