lavfi/graphparser: Constify a variable.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sat, 21 Oct 2017 18:24:49 +0000 (20:24 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sat, 21 Oct 2017 18:24:49 +0000 (20:24 +0200)
Fixes the following warning:
libavfilter/graphparser.c:122:10: warning: assignment discards 'const' qualifier from pointer target type

libavfilter/graphparser.c

index 1405926..d92b536 100644 (file)
@@ -96,7 +96,7 @@ static char *parse_link_name(const char **buf, void *log_ctx)
 static int create_filter(AVFilterContext **filt_ctx, AVFilterGraph *ctx, int index,
                          const char *name, const char *args, void *log_ctx)
 {
-    AVFilter *filt;
+    const AVFilter *filt;
     char name2[30];
     const char *inst_name = NULL, *filt_name = NULL;
     char *tmp_args = NULL;