this allow a filter to be written like this: aformat = sample_fmts = fltp|flt: sample_rates = 44100|44800
Signed-off-by: Muhammad Faiz <mfc...@gmail.com> --- libavfilter/graphparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c index 8d15b5d..03062af 100644 --- a/libavfilter/graphparser.c +++ b/libavfilter/graphparser.c @@ -165,12 +165,12 @@ static int parse_filter(AVFilterContext **filt_ctx, const char **buf, AVFilterGr int index, void *log_ctx) { char *opts = NULL; - char *name = av_get_token(buf, "=,;[\n"); + char *name = av_get_token(buf, "=,;["); int ret; if (**buf == '=') { (*buf)++; - opts = av_get_token(buf, "[],;\n"); + opts = av_get_token(buf, "[],;"); } ret = create_filter(filt_ctx, graph, index, name, opts, log_ctx); -- 2.5.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel