lavfi: silence a discarded const qualifier warning.
authorClément Bœsch <ubitux@gmail.com>
Sat, 11 May 2013 20:29:46 +0000 (22:29 +0200)
committerClément Bœsch <ubitux@gmail.com>
Thu, 16 May 2013 16:38:10 +0000 (18:38 +0200)
libavfilter/avfilter.c

index b61b706..5aa6f55 100644 (file)
@@ -436,14 +436,14 @@ static AVFilter *first_filter;
 
 AVFilter *avfilter_get_by_name(const char *name)
 {
-    AVFilter *f = NULL;
+    const AVFilter *f = NULL;
 
     if (!name)
         return NULL;
 
     while ((f = avfilter_next(f)))
         if (!strcmp(f->name, name))
-            return f;
+            return (AVFilter *)f;
 
     return NULL;
 }