History

avfilter/avf_showspectrum: use proper function return value instead of hardcoded number

Paul B Mahol committed 5 years ago

Commit 16b43311 parent b3117f31 file · +1 −1Browse files

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

Unified · Split

libavfilter/avf_showspectrum.c+1−1
@@ -1037,7 +1037,7 @@ static int config_output(AVFilterLink *outlink) · 1036 unmodified lines
1037 }1037 }
1038 1038
1039 s->win_size = fft_size;1039 s->win_size = fft_size;
1040 s->buf_size = FFALIGN(s->win_size << (!!s->stop), 512);1040 s->buf_size = FFALIGN(s->win_size << (!!s->stop), av_cpu_max_align());
1041 1041
1042 if (!s->fft) {1042 if (!s->fft) {
1043 s->fft = av_calloc(inlink->channels, sizeof(*s->fft));1043 s->fft = av_calloc(inlink->channels, sizeof(*s->fft));

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