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

Unified · Split

libavfilter/avf_showspectrum.c+1−1
@@ -1037,7 +1037,7 @@ static int config_output(AVFilterLink *outlink) · 1036 unmodified lines
10371037 }
10381038
10391039 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());
10411041
10421042 if (!s->fft) {
10431043 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