summaryrefslogtreecommitdiffstats
path: root/libavfilter/avf_showwaves.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2014-11-09 14:19:36 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-09 16:44:10 +0100
commit86476c510ebd14d33ed02289d71bae874f8707a4 (patch)
tree5b6342bf1ce6797ef6a292703d1ba656a1d6a7f3 /libavfilter/avf_showwaves.c
parent7ba727777587c1a83fb1f54bde5f960376e90dca (diff)
downloadffmpeg-streaming-86476c510ebd14d33ed02289d71bae874f8707a4.zip
ffmpeg-streaming-86476c510ebd14d33ed02289d71bae874f8707a4.tar.gz
avfilter/avf_showwaves: fix off by one error in loop condition
It caused segfaults. Signed-off-by: Marton Balint <cus@passwd.hu> Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/avf_showwaves.c')
-rw-r--r--libavfilter/avf_showwaves.c2
1 files changed, 1 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud