aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/bintext.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2011-09-26 00:19:56 +0200
committerAurelien Jacobs <aurel@gnuage.org>2011-09-26 00:22:41 +0200
commitc894449fc4a5a3d1ff1530318a015b0f0d0d5558 (patch)
treee3e80fa9eceb5321fca21819df48c1bb48e84617 /libavformat/bintext.c
parentf85c9b77712214373d09e7d608e6a9dd3b465f5e (diff)
downloadffmpeg-c894449fc4a5a3d1ff1530318a015b0f0d0d5558.tar.gz
act, bintext, wtvenc: use named struct initializers
Diffstat (limited to 'libavformat/bintext.c')
-rw-r--r--libavformat/bintext.c52
1 files changed, 25 insertions, 27 deletions
diff --git a/libavformat/bintext.c b/libavformat/bintext.c
index 904fd1f519..a0a1f21b87 100644
--- a/libavformat/bintext.c
+++ b/libavformat/bintext.c
@@ -330,47 +330,45 @@ static int read_packet(AVFormatContext *s,
#if CONFIG_BINTEXT_DEMUXER
AVInputFormat ff_bintext_demuxer = {
- "bin",
- NULL_IF_CONFIG_SMALL("Binary text"),
- sizeof(BinDemuxContext),
- NULL,
- bintext_read_header,
- read_packet,
- .extensions = "bin",
+ .name = "bin",
+ .long_name = NULL_IF_CONFIG_SMALL("Binary text"),
+ .priv_data_size = sizeof(BinDemuxContext),
+ .read_header = bintext_read_header,
+ .read_packet = read_packet,
+ .extensions = "bin",
};
#endif
#if CONFIG_XBIN_DEMUXER
AVInputFormat ff_xbin_demuxer = {
- "xbin",
- NULL_IF_CONFIG_SMALL("eXtended BINary text (XBIN)"),
- sizeof(BinDemuxContext),
- xbin_probe,
- xbin_read_header,
- read_packet,
+ .name = "xbin",
+ .long_name = NULL_IF_CONFIG_SMALL("eXtended BINary text (XBIN)"),
+ .priv_data_size = sizeof(BinDemuxContext),
+ .read_probe = xbin_probe,
+ .read_header = xbin_read_header,
+ .read_packet = read_packet,
};
#endif
#if CONFIG_ADF_DEMUXER
AVInputFormat ff_adf_demuxer = {
- "adf",
- NULL_IF_CONFIG_SMALL("Artworx Data Format"),
- sizeof(BinDemuxContext),
- NULL,
- adf_read_header,
- read_packet,
- .extensions = "adf",
+ .name = "adf",
+ .long_name = NULL_IF_CONFIG_SMALL("Artworx Data Format"),
+ .priv_data_size = sizeof(BinDemuxContext),
+ .read_header = adf_read_header,
+ .read_packet = read_packet,
+ .extensions = "adf",
};
#endif
#if CONFIG_IDF_DEMUXER
AVInputFormat ff_idf_demuxer = {
- "idf",
- NULL_IF_CONFIG_SMALL("iCE Draw File"),
- sizeof(BinDemuxContext),
- idf_probe,
- idf_read_header,
- read_packet,
- .extensions = "idf",
+ .name = "idf",
+ .long_name = NULL_IF_CONFIG_SMALL("iCE Draw File"),
+ .priv_data_size = sizeof(BinDemuxContext),
+ .read_probe = idf_probe,
+ .read_header = idf_read_header,
+ .read_packet = read_packet,
+ .extensions = "idf",
};
#endif