Commit a7bf5f41 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/avf_showspectrum: use FF_ARRAY_ELEMS()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 1817643d
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment