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

Clément Bœsch git at videolan.org
Thu May 16 19:10:58 CEST 2013


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Sat May 11 22:29:46 2013 +0200| [d94c90700863ce3c0bb87e8e590396b919880a6f] | committer: Clément Bœsch

lavfi: silence a discarded const qualifier warning.

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

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

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index b61b706..5aa6f55 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;
 }



More information about the ffmpeg-cvslog mailing list