]> git.sesse.net Git - ffmpeg/commitdiff
v4l2: set default standard to NULL
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 28 May 2011 18:47:17 +0000 (20:47 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 28 May 2011 19:18:01 +0000 (21:18 +0200)
Avoid a failure with the default value of "NTSC". Not all drivers
support a standard.

libavdevice/v4l2.c

index d06ec29a875e4895973d6fbf0cdef3d4d05bb84b..deffa92280d2c17af0f11b4171265cfce3e48daf 100644 (file)
@@ -717,7 +717,7 @@ static int v4l2_read_close(AVFormatContext *s1)
 #define DEC AV_OPT_FLAG_DECODING_PARAM
 
 static const AVOption options[] = {
-    { "standard", "", OFFSET(standard), FF_OPT_TYPE_STRING, {.str = "NTSC" }, 0, 0, AV_OPT_FLAG_DECODING_PARAM },
+    { "standard", "", OFFSET(standard), FF_OPT_TYPE_STRING, {.str = NULL }, 0, 0, AV_OPT_FLAG_DECODING_PARAM },
     { "channel",  "", OFFSET(channel),  FF_OPT_TYPE_INT,    {.dbl = 0 }, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
     { "video_size", "A string describing frame size, such as 640x480 or hd720.", OFFSET(video_size), FF_OPT_TYPE_STRING, {.str = NULL}, 0, 0, DEC },
     { NULL },