avfilter/af_channelsplit: check ff_insert_outpad() for failure
authorPaul B Mahol <onemda@gmail.com>
Fri, 25 Aug 2017 08:01:52 +0000 (10:01 +0200)
committerPaul B Mahol <onemda@gmail.com>
Fri, 25 Aug 2017 08:05:07 +0000 (10:05 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/af_channelsplit.c

index 248eaca..8c6b00f 100644 (file)
@@ -71,7 +71,9 @@ static av_cold int init(AVFilterContext *ctx)
         pad.type = AVMEDIA_TYPE_AUDIO;
         pad.name = av_get_channel_name(channel);
 
-        ff_insert_outpad(ctx, i, &pad);
+        if ((ret = ff_insert_outpad(ctx, i, &pad)) < 0) {
+            return ret;
+        }
     }
 
 fail: