[FFmpeg-cvslog] lavfi/split: use AVFILTER_DEFINE_CLASS to define class

Stefano Sabatini git at videolan.org
Tue Apr 16 22:19:34 CEST 2013


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Mon Apr 15 23:59:47 2013 +0200| [ba32afd70eaaffd089d4defebb21376259ae6fa4] | committer: Stefano Sabatini

lavfi/split: use AVFILTER_DEFINE_CLASS to define class

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

 libavfilter/split.c |   16 ++++------------
 1 file changed, 4 insertions(+), 12 deletions(-)

diff --git a/libavfilter/split.c b/libavfilter/split.c
index 6a52073..251ea2e 100644
--- a/libavfilter/split.c
+++ b/libavfilter/split.c
@@ -97,19 +97,11 @@ static const AVOption options[] = {
     { NULL },
 };
 
-static const AVClass split_class = {
-    .class_name = "split",
-    .item_name  = av_default_item_name,
-    .option     = options,
-    .version    = LIBAVUTIL_VERSION_INT,
-};
+#define split_options options
+AVFILTER_DEFINE_CLASS(split);
 
-static const AVClass asplit_class = {
-    .class_name = "asplit",
-    .item_name  = av_default_item_name,
-    .option     = options,
-    .version    = LIBAVUTIL_VERSION_INT,
-};
+#define asplit_options options
+AVFILTER_DEFINE_CLASS(asplit);
 
 static const AVFilterPad avfilter_vf_split_inputs[] = {
     {



More information about the ffmpeg-cvslog mailing list