Commit 5473a98e authored by Matthieu Bouron's avatar Matthieu Bouron Committed by Nicolas George

af_amerge: return errors from subfilters when requesting a frame

parent 27de7a8e
......@@ -141,11 +141,12 @@ static int request_frame(AVFilterLink *outlink)
{
AVFilterContext *ctx = outlink->src;
AMergeContext *am = ctx->priv;
int i;
int i, ret;
for (i = 0; i < 2; i++)
if (!am->queue[i].nb_samples)
avfilter_request_frame(ctx->inputs[i]);
if ((ret = avfilter_request_frame(ctx->inputs[i])) < 0)
return ret;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment