Showing the changes to libavfilter/avfilter.c (1 of 2 files). Show all
Unified · Split
| @@ -680,7 +680,6 @@ static const char *const filters_left_to_update[] = { · 679 unmodified lines | ||
| 680 | 680 | #endif |
| 681 | 681 | "atempo", |
| 682 | 682 | "buffer", |
| 683 | − "mp", | |
| 684 | 683 | "pan", |
| 685 | 684 | "scale", |
| 686 | 685 | }; |
| @@ -818,6 +817,21 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 131 unmodified lines | ||
| 818 | 817 | goto fail; |
| 819 | 818 | #endif |
| 820 | 819 | } else { |
| 820 | +#if CONFIG_MP_FILTER | |
| 821 | + if (!strcmp(filter->filter->name, "mp")) { | |
| 822 | + char *escaped; | |
| 823 | + | |
| 824 | + if (!strncmp(args, "filter=", 7)) | |
| 825 | + args += 7; | |
| 826 | + ret = av_escape(&escaped, args, ":=", AV_ESCAPE_MODE_BACKSLASH, 0); | |
| 827 | + if (ret < 0) { | |
| 828 | + av_log(filter, AV_LOG_ERROR, "Unable to escape MPlayer filters arg '%s'\n", args); | |
| 829 | + goto fail; | |
| 830 | + } | |
| 831 | + ret = process_options(filter, &options, escaped); | |
| 832 | + av_free(escaped); | |
| 833 | + } else | |
| 834 | +#endif | |
| 821 | 835 | ret = process_options(filter, &options, args); |
| 822 | 836 | if (ret < 0) |
| 823 | 837 | goto fail; |