Showing the changes to libavfilter (1 of 2 files). Show all
Unified · Split
| @@ -281,6 +281,22 @@ static av_cold int init(AVFilterContext *ctx) · 280 unmodified lines | ||
| 281 | 281 | return 0; |
| 282 | 282 | } |
| 283 | 283 | |
| 284 | +static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, | |
| 285 | + char *res, int res_len, int flags) | |
| 286 | +{ | |
| 287 | + AudioNLMSContext *s = ctx->priv; | |
| 288 | + int ret; | |
| 289 | + | |
| 290 | + if ( !strcmp(cmd, "mu") || !strcmp(cmd, "eps") | |
| 291 | + || !strcmp(cmd, "leakage") || !strcmp(cmd, "out_mode")) { | |
| 292 | + ret = av_opt_set(s, cmd, args, 0); | |
| 293 | + } else { | |
| 294 | + ret = AVERROR(ENOSYS); | |
| 295 | + } | |
| 296 | + | |
| 297 | + return ret; | |
| 298 | +} | |
| 299 | + | |
| 284 | 300 | static av_cold void uninit(AVFilterContext *ctx) |
| 285 | 301 | { |
| 286 | 302 | AudioNLMSContext *s = ctx->priv; |
| @@ -325,4 +341,5 @@ AVFilter ff_af_anlms = { · 38 unmodified lines | ||
| 325 | 341 | .inputs = inputs, |
| 326 | 342 | .outputs = outputs, |
| 327 | 343 | .flags = AVFILTER_FLAG_SLICE_THREADS, |
| 344 | + .process_command = process_command, | |
| 328 | 345 | }; |