avfilter/avf_showspectrum: use FF_ARRAY_ELEMS()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
pull/172/head
Paul B Mahol 9 years ago
parent 1817643d4f
commit a7bf5f4117
  1. 2
      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

Loading…
Cancel
Save