[FFmpeg-cvslog] avcodec/flacenc: use designated initializers for AVClass

Paul B Mahol git at videolan.org
Sun Dec 20 17:51:28 CET 2015


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Dec 20 17:47:21 2015 +0100| [367ffa0c151792651a741554c608a73bad112663] | committer: Paul B Mahol

avcodec/flacenc: 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=367ffa0c151792651a741554c608a73bad112663
---

 libavcodec/flacenc.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/flacenc.c b/libavcodec/flacenc.c
index b3833fa..5db043a 100644
--- a/libavcodec/flacenc.c
+++ b/libavcodec/flacenc.c
@@ -1468,10 +1468,10 @@ static const AVOption options[] = {
 };
 
 static const AVClass flac_encoder_class = {
-    "FLAC encoder",
-    av_default_item_name,
-    options,
-    LIBAVUTIL_VERSION_INT,
+    .class_name = "FLAC encoder",
+    .item_name  = av_default_item_name,
+    .option     = options,
+    .version    = LIBAVUTIL_VERSION_INT,
 };
 
 AVCodec ff_flac_encoder = {



More information about the ffmpeg-cvslog mailing list