[FFmpeg-devel] [PATCH] lavfi: silence a discarded const qualifier warning.

Clément Bœsch ubitux at gmail.com
Sat May 11 22:29:59 CEST 2013


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

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 3f94dde..2b95b65 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -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;
 }
-- 
1.8.2.3



More information about the ffmpeg-devel mailing list