diff options
author | Martin Storsjö <martin@martin.st> | 2012-08-31 13:45:52 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-09-05 00:13:32 +0400 |
commit | 124134e42455763b28cc346fed1d07017a76e84e (patch) | |
tree | eb006dffed0eeb3efeb048da00cae5636e69a700 /libavdevice/dv1394.c | |
parent | 2d7d91f06d6a1d243dc74c96d3389ee237a3b906 (diff) |
avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union member
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavdevice/dv1394.c')
-rw-r--r-- | libavdevice/dv1394.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/dv1394.c b/libavdevice/dv1394.c index 2bb65b6a38..4c2ed26900 100644 --- a/libavdevice/dv1394.c +++ b/libavdevice/dv1394.c @@ -212,8 +212,8 @@ static int dv1394_close(AVFormatContext * context) static const AVOption options[] = { { "standard", "", offsetof(struct dv1394_data, format), AV_OPT_TYPE_INT, {.dbl = DV1394_NTSC}, DV1394_PAL, DV1394_NTSC, AV_OPT_FLAG_DECODING_PARAM, "standard" }, - { "PAL", "", 0, AV_OPT_TYPE_CONST, {.dbl = DV1394_PAL}, 0, 0, AV_OPT_FLAG_DECODING_PARAM, "standard" }, - { "NTSC", "", 0, AV_OPT_TYPE_CONST, {.dbl = DV1394_NTSC}, 0, 0, AV_OPT_FLAG_DECODING_PARAM, "standard" }, + { "PAL", "", 0, AV_OPT_TYPE_CONST, {.i64 = DV1394_PAL}, 0, 0, AV_OPT_FLAG_DECODING_PARAM, "standard" }, + { "NTSC", "", 0, AV_OPT_TYPE_CONST, {.i64 = DV1394_NTSC}, 0, 0, AV_OPT_FLAG_DECODING_PARAM, "standard" }, { "channel", "", offsetof(struct dv1394_data, channel), AV_OPT_TYPE_INT, {.dbl = DV1394_DEFAULT_CHANNEL}, 0, INT_MAX, AV_OPT_FLAG_DECODING_PARAM }, { NULL }, }; |