mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-21 06:16:59 +00:00
avfilter/avf_showspectrum: fix off by 1 error
Fixes: out of array access Fixes: tickets/10749/poc15ffmpeg Regression since:81df787b53
Found-by: Zeng Yunxiang Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commitab0fdaedd1
) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
9468749249
commit
8711cea384
@ -1779,7 +1779,7 @@ static int showspectrumpic_request_frame(AVFilterLink *outlink)
|
||||
int acc_samples = 0;
|
||||
int dst_offset = 0;
|
||||
|
||||
while (nb_frame <= s->nb_frames) {
|
||||
while (nb_frame < s->nb_frames) {
|
||||
AVFrame *cur_frame = s->frames[nb_frame];
|
||||
int cur_frame_samples = cur_frame->nb_samples;
|
||||
int nb_samples = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user