lavd: add v4l and v4l2 aliases.
authorClément Bœsch <ubitux@gmail.com>
Sun, 30 Oct 2011 00:39:30 +0000 (02:39 +0200)
committerClément Bœsch <ubitux@gmail.com>
Sun, 30 Oct 2011 00:39:30 +0000 (02:39 +0200)
libavdevice/v4l.c
libavdevice/v4l2.c

index 7c8b397..3e5e5eb 100644 (file)
@@ -354,7 +354,7 @@ static const AVClass v4l_class = {
 };
 
 AVInputFormat ff_v4l_demuxer = {
-    .name           = "video4linux",
+    .name           = "video4linux,v4l",
     .long_name      = NULL_IF_CONFIG_SMALL("Video4Linux device grab"),
     .priv_data_size = sizeof(VideoData),
     .read_header    = grab_read_header,
index 468d4c1..9e26b2d 100644 (file)
@@ -705,7 +705,7 @@ static const AVClass v4l2_class = {
 };
 
 AVInputFormat ff_v4l2_demuxer = {
-    .name           = "video4linux2",
+    .name           = "video4linux2,v4l2",
     .long_name      = NULL_IF_CONFIG_SMALL("Video4Linux2 device grab"),
     .priv_data_size = sizeof(struct video_data),
     .read_header    = v4l2_read_header,