[FFmpeg-cvslog] avfilter/graphparser: remove '\n' from parse_filter

Muhammad Faiz git at videolan.org
Mon Jun 13 11:23:01 CEST 2016


ffmpeg | branch: master | Muhammad Faiz <mfcc64 at gmail.com> | Thu May  5 14:07:21 2016 +0700| [66023612955d9d839be842c00f8b0b4610009a24] | committer: Muhammad Faiz

avfilter/graphparser: remove '\n' from parse_filter

this allow a filter to be written like this:
aformat =
    sample_fmts  = fltp|flt:
    sample_rates = 44100|44800

Signed-off-by: Muhammad Faiz <mfcc64 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=66023612955d9d839be842c00f8b0b4610009a24
---

 libavfilter/graphparser.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/graphparser.c b/libavfilter/graphparser.c
index ce5be1b..04b4272 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);



More information about the ffmpeg-cvslog mailing list