[FFmpeg-cvslog] lavfi: use designated initializers in avfilter_class

Anton Khirnov git at videolan.org
Sat Mar 16 15:55:48 CET 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Feb 25 12:09:01 2013 +0100| [556aab8f11b045a21182eee32413aa78d5c8539b] | committer: Anton Khirnov

lavfi: use designated initializers in avfilter_class

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

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

diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index af9d9ee..4985ce9 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -320,10 +320,9 @@ static const char *filter_name(void *p)
 }
 
 static const AVClass avfilter_class = {
-    "AVFilter",
-    filter_name,
-    NULL,
-    LIBAVUTIL_VERSION_INT,
+    .class_name = "AVFilter",
+    .item_name  = filter_name,
+    .version    = LIBAVUTIL_VERSION_INT,
 };
 
 int avfilter_open(AVFilterContext **filter_ctx, AVFilter *filter, const char *inst_name)



More information about the ffmpeg-cvslog mailing list