diff grab.c @ 27:fcdea3df94fe libavformat

dv patch by Max Krasnyansky (maxk at qualcomm dot com)
author bellard
date Wed, 22 Jan 2003 22:40:52 +0000
parents 05318cf2e886
children 90fd30dd68b3
line wrap: on
line diff
--- a/grab.c	Wed Jan 22 09:53:25 2003 +0000
+++ b/grab.c	Wed Jan 22 22:40:52 2003 +0000
@@ -53,8 +53,6 @@
 static int aiw_read_picture(VideoData *s, uint8_t *data);
 static int aiw_close(VideoData *s);
 
-const char *v4l_device = "/dev/video";
-
 static int grab_read_header(AVFormatContext *s1, AVFormatParameters *ap)
 {
     VideoData *s = s1->priv_data;
@@ -80,9 +78,9 @@
     s->height = height;
     s->frame_rate = frame_rate;
 
-    video_fd = open(v4l_device, O_RDWR);
+    video_fd = open(video_device, O_RDWR);
     if (video_fd < 0) {
-        perror(v4l_device);
+        perror(video_device);
         goto fail;
     }
     
@@ -339,7 +337,7 @@
 }
 
 static AVInputFormat video_grab_device_format = {
-    "video_grab_device",
+    "video4linux",
     "video grab",
     sizeof(VideoData),
     NULL,