Browse Source

v4l2: set default standard to NULL

Avoid a failure with the default value of "NTSC". Not all drivers
support a standard.
tags/n0.8
Stefano Sabatini 14 years ago
parent
commit
af344a69f3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavdevice/v4l2.c

+ 1
- 1
libavdevice/v4l2.c View 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 },


Loading…
Cancel
Save