Commit 86476c51 authored by Marton Balint's avatar Marton Balint Committed by Michael Niedermayer

avfilter/avf_showwaves: fix off by one error in loop condition

It caused segfaults.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7ba72777
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment