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 | #endif | 680 | #endif |
| 681 | "atempo", | 681 | "atempo", |
| 682 | "buffer", | 682 | "buffer", |
| 683 | "mp", | ||
| 684 | "pan", | 683 | "pan", |
| 685 | "scale", | 684 | "scale", |
| 686 | }; | 685 | }; |
| @@ -818,6 +817,21 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque · 131 unmodified lines | |||
| 818 | goto fail; | 817 | goto fail; |
| 819 | #endif | 818 | #endif |
| 820 | } else { | 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 | ret = process_options(filter, &options, args); | 835 | ret = process_options(filter, &options, args); |
| 822 | if (ret < 0) | 836 | if (ret < 0) |
| 823 | goto fail; | 837 | goto fail; |