[FFmpeg-cvslog] avfilter: fix const use of avfilter_next

Vittorio Giovara git at videolan.org
Mon Oct 28 13:21:10 CET 2013


ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Mon Oct 28 02:58:13 2013 +0100| [884c7a6eb86a9bc05abafc058b279018ded7de5f] | committer: Anton Khirnov

avfilter: fix const use of avfilter_next

Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

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

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 68e0f2c..b18c0cb 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -277,7 +277,7 @@ const
 #endif
 AVFilter *avfilter_get_by_name(const char *name)
 {
-    AVFilter *f = NULL;
+    const AVFilter *f = NULL;
 
     if (!name)
         return NULL;
@@ -343,7 +343,7 @@ static void *filter_child_next(void *obj, void *prev)
 
 static const AVClass *filter_child_class_next(const AVClass *prev)
 {
-    AVFilter *f = NULL;
+    const AVFilter *f = NULL;
 
     while (prev && (f = avfilter_next(f)))
         if (f->priv_class == prev)



More information about the ffmpeg-cvslog mailing list