History

avfilter/avf_showfreqs: fix check for failed allocation

Paul B Mahol committed 7 years ago

Commit a46ee091 parent 1c165e11 file · +1 −1Browse files

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

Unified · Split

libavfilter/avf_showfreqs.c+1−1
@@ -195,7 +195,7 @@ static int config_output(AVFilterLink *outlink) · 194 unmodified lines
195 if (!s->fft_data)195 if (!s->fft_data)
196 return AVERROR(ENOMEM);196 return AVERROR(ENOMEM);
197 s->avg_data = av_calloc(s->nb_channels, sizeof(*s->avg_data));197 s->avg_data = av_calloc(s->nb_channels, sizeof(*s->avg_data));
198 if (!s->fft_data)198 if (!s->avg_data)
199 return AVERROR(ENOMEM);199 return AVERROR(ENOMEM);
200 for (i = 0; i < s->nb_channels; i++) {200 for (i = 0; i < s->nb_channels; i++) {
201 s->fft_data[i] = av_calloc(s->win_size, sizeof(**s->fft_data));201 s->fft_data[i] = av_calloc(s->win_size, sizeof(**s->fft_data));

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