mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/avf_showspectrum: use FF_ARRAY_ELEMS()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
1817643d4f
commit
a7bf5f4117
@ -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…
x
Reference in New Issue
Block a user