aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-08-25 09:49:01 +0200
committerPaul B Mahol <onemda@gmail.com>2017-08-25 09:49:01 +0200
commitdb5604ac26f06be34030c8ae8040c19d549280f1 (patch)
tree01fb42fbad7db76447c35601d29db101732eb3b1 /libavfilter
parent13f9639e3e2af50017c48fd804d76bad455f61af (diff)
downloadffmpeg-db5604ac26f06be34030c8ae8040c19d549280f1.tar.gz
avfilter/af_join: check ff_insert_inpad() for failure
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/af_join.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavfilter/af_join.c b/libavfilter/af_join.c
index 74ecce052d..f8af0a1804 100644
--- a/libavfilter/af_join.c
+++ b/libavfilter/af_join.c
@@ -232,7 +232,10 @@ static av_cold int join_init(AVFilterContext *ctx)
pad.needs_fifo = 1;
- ff_insert_inpad(ctx, i, &pad);
+ if ((ret = ff_insert_inpad(ctx, i, &pad)) < 0) {
+ av_freep(&pad.name);
+ return ret;
+ }
}
return 0;