aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-09-16 10:27:42 +0200
committerPaul B Mahol <onemda@gmail.com>2019-09-16 10:27:42 +0200
commitdc3325076597b41e0e05f201df2a8a84f588006d (patch)
treea337f58fe17ee5ac6df3a629aa5078e448b9a48e
parent921eb21b1d1b0468dc9e15418a498ea692312ff6 (diff)
downloadffmpeg-dc3325076597b41e0e05f201df2a8a84f588006d.tar.gz
avfilter/af_headphone: return on error immediately
-rw-r--r--libavfilter/af_headphone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_headphone.c b/libavfilter/af_headphone.c
index 10638f9e7b..552ad84837 100644
--- a/libavfilter/af_headphone.c
+++ b/libavfilter/af_headphone.c
@@ -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;