History

avfilter/avf_showspectrum: fix off by 1 error

Fixes: out of array access Fixes: tickets/10749/poc15ffmpeg Regression since: 81df787b53eb5c6433731f6eaaf7f2a94d8a8c80

Michael Niedermayer committed 2 years ago

Commit ab0fdae1 parent aec67d31 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/avf_showspectrum.c+1−1
@@ -1784,7 +1784,7 @@ static int showspectrumpic_request_frame(AVFilterLink *outlink) · 1783 unmodified lines
1784 int acc_samples = 0;1784 int acc_samples = 0;
1785 int dst_offset = 0;1785 int dst_offset = 0;
1786 1786
1787 while (nb_frame <= s->nb_frames) {1787 while (nb_frame < s->nb_frames) {
1788 AVFrame *cur_frame = s->frames[nb_frame];1788 AVFrame *cur_frame = s->frames[nb_frame];
1789 int cur_frame_samples = cur_frame->nb_samples;1789 int cur_frame_samples = cur_frame->nb_samples;
1790 int nb_samples = 0;1790 int nb_samples = 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t