[FFmpeg-cvslog] swscale: use designated initializers for AVClass

Paul B Mahol git at videolan.org
Fri Jun 22 04:36:00 CEST 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Jun 22 02:34:34 2012 +0000| [81416c2f64415cfa47a21c13f8142b73094a2887] | committer: Paul B Mahol

swscale: use designated initializers for AVClass

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libswscale/options.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libswscale/options.c b/libswscale/options.c
index ade9888..a396a58 100644
--- a/libswscale/options.c
+++ b/libswscale/options.c
@@ -66,7 +66,11 @@ static const AVOption options[] = {
     { NULL }
 };
 
-const AVClass sws_context_class = { "SWScaler", sws_context_to_name, options };
+const AVClass sws_context_class = {
+    .class_name = "SWScaler",
+    .item_name  = sws_context_to_name,
+    .option     = options,
+};
 
 const AVClass *sws_get_class(void)
 {



More information about the ffmpeg-cvslog mailing list