diff options
author | Marton Balint <cus@passwd.hu> | 2014-11-09 14:19:36 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-09 16:44:10 +0100 |
commit | 86476c510ebd14d33ed02289d71bae874f8707a4 (patch) | |
tree | 5b6342bf1ce6797ef6a292703d1ba656a1d6a7f3 /libavfilter | |
parent | 7ba727777587c1a83fb1f54bde5f960376e90dca (diff) | |
download | ffmpeg-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')
-rw-r--r-- | libavfilter/avf_showwaves.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showwaves.c b/libavfilter/avf_showwaves.c index 4cd225a173..fa34a52dc5 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; } |