History

avfilter/af_rubberband: handle case when no frame is given

Paul B Mahol committed 7 years ago

Commit 066864a1 parent fec42121 file · +6 −3Browse files

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

Unified · Split

libavfilter/af_rubberband.c+6−3
@@ -148,7 +148,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 147 unmodified lines
148148 }
149149
150150 av_frame_free(&in);
151− return ret;
151+ return ret < 0 ? ret : nb_samples;
152152 }
153153
154154 static int config_input(AVFilterLink *inlink)
@@ -184,8 +184,11 @@ static int activate(AVFilterContext *ctx) · 29 unmodified lines
184184 ret = ff_inlink_consume_samples(inlink, s->nb_samples, s->nb_samples, &in);
185185 if (ret < 0)
186186 return ret;
187− if (ret > 0)
188− return filter_frame(inlink, in);
187+ if (ret > 0) {
188+ ret = filter_frame(inlink, in);
189+ if (ret > 0)
190+ return ret;
191+ }
189192
190193 FF_FILTER_FORWARD_STATUS(inlink, outlink);
191194 FF_FILTER_FORWARD_WANTED(outlink, inlink);

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