[FFmpeg-cvslog] avfilter: remove useless cast

Zhao Zhili git at videolan.org
Sun Aug 23 11:49:51 EEST 2020


ffmpeg | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Mon Oct 28 00:02:36 2019 +0800| [26f81e5e83a015578c4c0c1d121a5e5f6c72bf8a] | committer: Andreas Rheinhardt

avfilter: remove useless cast

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

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

 libavfilter/allfilters.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/allfilters.c b/libavfilter/allfilters.c
index 3f70153986..fa91e608e4 100644
--- a/libavfilter/allfilters.c
+++ b/libavfilter/allfilters.c
@@ -528,7 +528,7 @@ const AVFilter *avfilter_get_by_name(const char *name)
 
     while ((f = av_filter_iterate(&opaque)))
         if (!strcmp(f->name, name))
-            return (AVFilter *)f;
+            return f;
 
     return NULL;
 }



More information about the ffmpeg-cvslog mailing list