[FFmpeg-cvslog] avfilter/avf_showspectrum: use FF_ARRAY_ELEMS()
Paul B Mahol
git at videolan.org
Tue Dec 29 00:01:39 CET 2015
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Dec 28 23:04:40 2015 +0100| [a7bf5f4117b449954e4a91098e2f982a7e536865] | committer: Paul B Mahol
avfilter/avf_showspectrum: use FF_ARRAY_ELEMS()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a7bf5f4117b449954e4a91098e2f982a7e536865
---
libavfilter/avf_showspectrum.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c
index 0e2e84b..55cc668 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
More information about the ffmpeg-cvslog
mailing list