diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-08-25 09:49:01 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-08-25 09:49:01 +0200 |
commit | db5604ac26f06be34030c8ae8040c19d549280f1 (patch) | |
tree | 01fb42fbad7db76447c35601d29db101732eb3b1 /libavfilter | |
parent | 13f9639e3e2af50017c48fd804d76bad455f61af (diff) | |
download | ffmpeg-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.c | 5 |
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; |