diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2016-11-29 21:49:22 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2016-12-01 09:53:38 +0100 |
commit | d44af9a38e6b116e1a89b2862f4d4f8cb9855387 (patch) | |
tree | 9ff40ec17bbfce52190b2a64288136db9ec92f60 /libavfilter/af_apulsator.c | |
parent | 4e6d1c1f4ec83000a067ff14452b34c1f2d2a43a (diff) | |
download | ffmpeg-d44af9a38e6b116e1a89b2862f4d4f8cb9855387.tar.gz |
lavfi: Fix aix compilation.
Rename hz in af_apulsator.c and avf_showspectrum.c as hertz.
The aix header sys/m_param.h defines hz as __hz.
Diffstat (limited to 'libavfilter/af_apulsator.c')
-rw-r--r-- | libavfilter/af_apulsator.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/af_apulsator.c b/libavfilter/af_apulsator.c index 802b8d0256..67711a28ce 100644 --- a/libavfilter/af_apulsator.c +++ b/libavfilter/af_apulsator.c @@ -47,7 +47,7 @@ typedef struct AudioPulsatorContext { double offset_r; double pwidth; double bpm; - double hz; + double hertz; int ms; int timing; @@ -76,7 +76,7 @@ static const AVOption apulsator_options[] = { { "hz", NULL, 0, AV_OPT_TYPE_CONST, {.i64=UNIT_HZ}, 0, 0, FLAGS, "timing" }, { "bpm", "set BPM", OFFSET(bpm), AV_OPT_TYPE_DOUBLE, {.dbl=120}, 30, 300, FLAGS }, { "ms", "set ms", OFFSET(ms), AV_OPT_TYPE_INT, {.i64=500}, 10, 2000, FLAGS }, - { "hz", "set frequency", OFFSET(hz), AV_OPT_TYPE_DOUBLE, {.dbl=2}, 0.01, 100, FLAGS }, + { "hz", "set frequency", OFFSET(hertz), AV_OPT_TYPE_DOUBLE, {.dbl=2}, 0.01, 100, FLAGS }, { NULL } }; @@ -208,7 +208,7 @@ static int config_input(AVFilterLink *inlink) switch (s->timing) { case UNIT_BPM: freq = s->bpm / 60; break; case UNIT_MS: freq = 1 / (s->ms / 1000.); break; - case UNIT_HZ: freq = s->hz; break; + case UNIT_HZ: freq = s->hertz; break; default: av_assert0(0); } |