From 86476c510ebd14d33ed02289d71bae874f8707a4 Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Sun, 9 Nov 2014 14:19:36 +0100 Subject: avfilter/avf_showwaves: fix off by one error in loop condition It caused segfaults. Signed-off-by: Marton Balint Reviewed-by: Paul B Mahol Signed-off-by: Michael Niedermayer --- libavfilter/avf_showwaves.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavfilter/avf_showwaves.c') diff --git a/libavfilter/avf_showwaves.c b/libavfilter/avf_showwaves.c index 4cd225a..fa34a52 100644 --- a/libavfilter/avf_showwaves.c +++ b/libavfilter/avf_showwaves.c @@ -157,7 +157,7 @@ inline static int push_frame(AVFilterLink *outlink) showwaves->req_fullfilled = 1; showwaves->outpicref = NULL; showwaves->buf_idx = 0; - for (i = 0; i <= nb_channels; i++) + for (i = 0; i < nb_channels; i++) showwaves->buf_idy[i] = 0; return ret; } -- cgit v1.1