Drop the unused opaque parameter from its signature.
Showing the changes to libavfilter/avfiltergraph.c (1 of 7 files). Show all
Unified · Split
| @@ -103,7 +103,9 @@ int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt, · 102 unmodified lines | ||
| 103 | 103 | *filt_ctx = avfilter_graph_alloc_filter(graph_ctx, filt, name); |
| 104 | 104 | if (!*filt_ctx) |
| 105 | 105 | return AVERROR(ENOMEM); |
| 106 | − if ((ret = avfilter_init_filter(*filt_ctx, args, opaque)) < 0) | |
| 106 | + | |
| 107 | + ret = avfilter_init_str(*filt_ctx, args); | |
| 108 | + if (ret < 0) | |
| 107 | 109 | goto fail; |
| 108 | 110 | |
| 109 | 111 | return 0; |