Revision 4a7a1b7d

View differences:

libavformat/avio.c
40 40
    else        return "NULL";
41 41
}
42 42
static const AVOption options[] = {{NULL}};
43
static const AVClass urlcontext_class =
44
        { "URLContext", urlcontext_to_name, options, LIBAVUTIL_VERSION_INT };
43
static const AVClass urlcontext_class = {
44
    .class_name     = "URLContext",
45
    .item_name      = urlcontext_to_name,
46
    .option         = options,
47
    .version        = LIBAVUTIL_VERSION_INT,
48
};
45 49
/*@}*/
46 50

  
47 51
static int default_interrupt_cb(void);
libavformat/crypto.c
52 52
};
53 53

  
54 54
static const AVClass crypto_class = {
55
    "crypto", av_default_item_name, options, LIBAVUTIL_VERSION_INT
55
    .class_name     = "crypto",
56
    .item_name      = av_default_item_name,
57
    .option         = options,
58
    .version        = LIBAVUTIL_VERSION_INT,
56 59
};
57 60

  
58 61
static int crypto_open(URLContext *h, const char *uri, int flags)
libavformat/http.c
58 58
{NULL}
59 59
};
60 60
static const AVClass httpcontext_class = {
61
    "HTTP", av_default_item_name, options, LIBAVUTIL_VERSION_INT
61
    .class_name     = "HTTP",
62
    .item_name      = av_default_item_name,
63
    .option         = options,
64
    .version        = LIBAVUTIL_VERSION_INT,
62 65
};
63 66

  
64 67
static int http_connect(URLContext *h, const char *path, const char *hoststr,
libavformat/mp3enc.c
166 166
};
167 167

  
168 168
static const AVClass mp3_muxer_class = {
169
    "MP3 muxer",
170
    av_default_item_name,
171
    options,
172
    LIBAVUTIL_VERSION_INT,
169
    .class_name     = "MP3 muxer",
170
    .item_name      = av_default_item_name,
171
    .option         = options,
172
    .version        = LIBAVUTIL_VERSION_INT,
173 173
};
174 174

  
175 175
static int id3v2_check_write_tag(AVFormatContext *s, AVMetadataTag *t, const char table[][4],
libavformat/mpegtsenc.c
89 89
};
90 90

  
91 91
static const AVClass mpegts_muxer_class = {
92
    "MPEGTS muxer",
93
    av_default_item_name,
94
    options,
95
    LIBAVUTIL_VERSION_INT,
92
    .class_name     = "MPEGTS muxer",
93
    .item_name      = av_default_item_name,
94
    .option         = options,
95
    .version        = LIBAVUTIL_VERSION_INT,
96 96
};
97 97

  
98 98
/* NOTE: 4 bytes must be left at the end for the crc32 */
libavformat/options.c
64 64
#undef D
65 65
#undef DEFAULT
66 66

  
67
static const AVClass av_format_context_class = { "AVFormatContext", format_to_name, options, LIBAVUTIL_VERSION_INT };
67
static const AVClass av_format_context_class = {
68
    .class_name     = "AVFormatContext",
69
    .item_name      = format_to_name,
70
    .option         = options,
71
    .version        = LIBAVUTIL_VERSION_INT,
72
};
68 73

  
69 74
static void avformat_get_context_defaults(AVFormatContext *s)
70 75
{
libavformat/spdifenc.c
93 93
{ NULL },
94 94
};
95 95

  
96
static const AVClass class = { "spdif", av_default_item_name, options, LIBAVUTIL_VERSION_INT };
96
static const AVClass class = {
97
    .class_name     = "spdif",
98
    .item_name      = av_default_item_name,
99
    .option         = options,
100
    .version        = LIBAVUTIL_VERSION_INT,
101
};
97 102

  
98 103
static int spdif_header_ac3(AVFormatContext *s, AVPacket *pkt)
99 104
{

Also available in: Unified diff