History

avfilter/af_rubberband: check if rbs is valid

Paul B Mahol committed 7 years ago

Commit a89ec331 parent 21d1bb01 file · +2 −0Browse files

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

Unified · Split

libavfilter/af_rubberband.c+2−0
@@ -157,6 +157,8 @@ static int config_input(AVFilterLink *inlink) · 156 unmodified lines
157157 if (s->rbs)
158158 rubberband_delete(s->rbs);
159159 s->rbs = rubberband_new(inlink->sample_rate, inlink->channels, opts, 1. / s->tempo, s->pitch);
160+ if (!s->rbs)
161+ return AVERROR(ENOMEM);
160162
161163 inlink->partial_buf_size =
162164 inlink->min_samples =

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