summaryrefslogtreecommitdiff
path: root/libavfilter/avf_showspectrum.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-12-28 23:04:40 +0100
committerPaul B Mahol <onemda@gmail.com>2015-12-28 23:04:40 +0100
commita7bf5f4117b449954e4a91098e2f982a7e536865 (patch)
tree78a14d1ed67b8fdaeb9b206d2730661e9e9ce551 /libavfilter/avf_showspectrum.c
parent1817643d4f50a2a9a0fe0b3c0cc2a69a33ec6ccd (diff)
avfilter/avf_showspectrum: use FF_ARRAY_ELEMS()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/avf_showspectrum.c')
-rw-r--r--libavfilter/avf_showspectrum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c
index 0e2e84be5d..55cc6681c1 100644
--- a/libavfilter/avf_showspectrum.c
+++ b/libavfilter/avf_showspectrum.c
@@ -390,7 +390,7 @@ static int plot_spectrum_column(AVFilterLink *inlink, AVFrame *insamples)
float y, u, v;
int i;
- for (i = 1; i < sizeof(intensity_color_table) / sizeof(*intensity_color_table) - 1; i++)
+ for (i = 1; i < FF_ARRAY_ELEMS(intensity_color_table) - 1; i++)
if (intensity_color_table[i].a >= a)
break;
// i now is the first item >= the color