aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/cpu.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-08-31 12:52:18 +0300
committerMartin Storsjö <martin@martin.st>2012-09-04 23:13:38 +0300
commitd58dd4b5b5d31cfd4092e38a5f2c894eee2ab078 (patch)
tree1ae54e270c0533eb8fd62bb8d3ebde4e9b737c34 /libavutil/cpu.c
parent124134e42455763b28cc346fed1d07017a76e84e (diff)
downloadffmpeg-d58dd4b5b5d31cfd4092e38a5f2c894eee2ab078.tar.gz
avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union member
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavutil/cpu.c')
-rw-r--r--libavutil/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/cpu.c b/libavutil/cpu.c
index 57b8c713bf..8db69be24e 100644
--- a/libavutil/cpu.c
+++ b/libavutil/cpu.c
@@ -62,7 +62,7 @@ int av_parse_cpu_flags(const char *s)
#define CPUFLAG_XOP (AV_CPU_FLAG_XOP | CPUFLAG_AVX)
#define CPUFLAG_FMA4 (AV_CPU_FLAG_FMA4 | CPUFLAG_AVX)
static const AVOption cpuflags_opts[] = {
- { "flags" , NULL, 0, AV_OPT_TYPE_FLAGS, { 0 }, INT64_MIN, INT64_MAX, .unit = "flags" },
+ { "flags" , NULL, 0, AV_OPT_TYPE_FLAGS, { .i64 = 0 }, INT64_MIN, INT64_MAX, .unit = "flags" },
#if ARCH_PPC
{ "altivec" , NULL, 0, AV_OPT_TYPE_CONST, { .i64 = AV_CPU_FLAG_ALTIVEC }, .unit = "flags" },
#elif ARCH_X86