Commit dc332507 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_headphone: return on error immediately

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