mirror of https://git.ffmpeg.org/ffmpeg.git
af_amerge: return errors from subfilters when requesting a frame
This commit is contained in:
parent
27de7a8eb3
commit
5473a98e45
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue