[FFmpeg-cvslog] avfilter/af_headphone: return on error immediately

Paul B Mahol git at videolan.org
Mon Sep 16 12:49:25 EEST 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Sep 16 10:27:42 2019 +0200| [dc3325076597b41e0e05f201df2a8a84f588006d] | committer: Paul B Mahol

avfilter/af_headphone: return on error immediately

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dc3325076597b41e0e05f201df2a8a84f588006d
---

 libavfilter/af_headphone.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list