aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/v4l2.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-09-23 20:50:11 +0200
committerDiego Biurrun <diego@biurrun.de>2011-09-24 12:11:17 +0200
commit30b4ee7901ec5dbe24f1c75c0c0b43ba551c858b (patch)
tree1280949167f244216ee5ef382be0928a1abbe4e2 /libavdevice/v4l2.c
parent9ff6d0791b220d80844b45c9217113306a50a6cc (diff)
downloadffmpeg-30b4ee7901ec5dbe24f1c75c0c0b43ba551c858b.tar.gz
Use explicit struct initializers for AVOutputFormat/AVInputFormat declarations.
Diffstat (limited to 'libavdevice/v4l2.c')
-rw-r--r--libavdevice/v4l2.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 7a501a901c..2ae5a3fe17 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -725,13 +725,12 @@ static const AVClass v4l2_class = {
};
AVInputFormat ff_v4l2_demuxer = {
- "video4linux2",
- NULL_IF_CONFIG_SMALL("Video4Linux2 device grab"),
- sizeof(struct video_data),
- NULL,
- v4l2_read_header,
- v4l2_read_packet,
- v4l2_read_close,
- .flags = AVFMT_NOFILE,
- .priv_class = &v4l2_class,
+ .name = "video4linux2",
+ .long_name = NULL_IF_CONFIG_SMALL("Video4Linux2 device grab"),
+ .priv_data_size = sizeof(struct video_data),
+ .read_header = v4l2_read_header,
+ .read_packet = v4l2_read_packet,
+ .read_close = v4l2_read_close,
+ .flags = AVFMT_NOFILE,
+ .priv_class = &v4l2_class,
};