avfilter/af_headphone: return on error immediately

This commit is contained in:
Paul B Mahol 2019-09-16 10:27:42 +02:00
parent 921eb21b1d
commit dc33250765

View File

@ -709,7 +709,7 @@ static int query_formats(AVFilterContext *ctx)
if (s->hrir_fmt == HRIR_MULTI) { if (s->hrir_fmt == HRIR_MULTI) {
hrir_layouts = ff_all_channel_counts(); hrir_layouts = ff_all_channel_counts();
if (!hrir_layouts) if (!hrir_layouts)
ret = AVERROR(ENOMEM); return AVERROR(ENOMEM);
ret = ff_channel_layouts_ref(hrir_layouts, &ctx->inputs[1]->out_channel_layouts); ret = ff_channel_layouts_ref(hrir_layouts, &ctx->inputs[1]->out_channel_layouts);
if (ret) if (ret)
return ret; return ret;