lavfi/tests/filtfmts: Constify a variable.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Tue, 24 Oct 2017 20:32:59 +0000 (22:32 +0200)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Tue, 24 Oct 2017 20:32:59 +0000 (22:32 +0200)
Fixes the following warning:
libavfilter/tests/filtfmts.c: In function ‘main’:
libavfilter/tests/filtfmts.c:103:18: warning: assignment discards ‘const’ qualifier from pointer target type

libavfilter/tests/filtfmts.c

index 199d74d..72b860a 100644 (file)
@@ -73,7 +73,7 @@ static void print_formats(AVFilterContext *filter_ctx)
 
 int main(int argc, char **argv)
 {
-    AVFilter *filter;
+    const AVFilter *filter;
     AVFilterContext *filter_ctx;
     AVFilterGraph *graph_ctx;
     const char *filter_name;