lavfi/af_amerge: return EAGAIN if the input layouts are not known.

Also downgrade the error to a warning.
This commit is contained in:
Nicolas George 2013-02-21 20:15:32 +01:00
parent 57cb4fb075
commit 00da527b44
1 changed files with 2 additions and 2 deletions

View File

@ -82,9 +82,9 @@ static int query_formats(AVFilterContext *ctx)
for (i = 0; i < am->nb_inputs; i++) {
if (!ctx->inputs[i]->in_channel_layouts ||
!ctx->inputs[i]->in_channel_layouts->nb_channel_layouts) {
av_log(ctx, AV_LOG_ERROR,
av_log(ctx, AV_LOG_WARNING,
"No channel layout for input %d\n", i + 1);
return AVERROR(EINVAL);
return AVERROR(EAGAIN);
}
inlayout[i] = ctx->inputs[i]->in_channel_layouts->channel_layouts[0];
if (ctx->inputs[i]->in_channel_layouts->nb_channel_layouts > 1) {