aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avfilter.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-04-11 22:39:42 +0200
committerClément Bœsch <ubitux@gmail.com>2013-04-11 23:27:12 +0200
commit838d803155dd7bcdf87db409af9e151aca3329ae (patch)
treef5ca1c0a6172fcb290615d27f7962b029daabf0d /libavfilter/avfilter.c
parent70b72ca6f3fa1a7ad6f5297624c71f90d7885f7e (diff)
downloadffmpeg-838d803155dd7bcdf87db409af9e151aca3329ae.tar.gz
lavfi/mp: switch to an AVOptions-based system.
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r--libavfilter/avfilter.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index d20c74d42a..9cdf12d2d1 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -680,7 +680,6 @@ static const char *const filters_left_to_update[] = {
#endif
"atempo",
"buffer",
- "mp",
"pan",
"scale",
};
@@ -818,6 +817,21 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
goto fail;
#endif
} else {
+#if CONFIG_MP_FILTER
+ if (!strcmp(filter->filter->name, "mp")) {
+ char *escaped;
+
+ if (!strncmp(args, "filter=", 7))
+ args += 7;
+ ret = av_escape(&escaped, args, ":=", AV_ESCAPE_MODE_BACKSLASH, 0);
+ if (ret < 0) {
+ av_log(filter, AV_LOG_ERROR, "Unable to escape MPlayer filters arg '%s'\n", args);
+ goto fail;
+ }
+ ret = process_options(filter, &options, escaped);
+ av_free(escaped);
+ } else
+#endif
ret = process_options(filter, &options, args);
if (ret < 0)
goto fail;