mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
avfilter/avf_showspectrum: fix off by 1 error
Fixes: out of array access Fixes: tickets/10749/poc15ffmpeg Regression since: 81df787b53eb5c6433731f6eaaf7f2a94d8a8c80 Found-by: Zeng Yunxiang Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit ab0fdaedd1e7224f7e84ea22fcbfaa4ca75a6c06) 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…
x
Reference in New Issue
Block a user