aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/src_movie.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2015-01-06 09:42:59 +0000
committerMichael Niedermayer <michaelni@gmx.at>2015-01-09 17:18:40 +0100
commit20a4cf0d09701fb0c623ba42399facf867fb1146 (patch)
tree330859ea9be6b32a80e5b0fe50d6b107eefe2fb1 /libavfilter/src_movie.c
parent54b76eb5951502d24618c335d0bb275f70d31f3c (diff)
downloadffmpeg-20a4cf0d09701fb0c623ba42399facf867fb1146.tar.gz
lavfi: check av_strdup() return value
Signed-off-by: Paul B Mahol <onemda@gmail.com> (cherry picked from commit 145a84717b62e086cdb5f26649ad9f1b51ef38d0) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/src_movie.c')
-rw-r--r--libavfilter/src_movie.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index 0b97b827e4..908c03e1d3 100644
--- a/libavfilter/src_movie.c
+++ b/libavfilter/src_movie.c
@@ -289,6 +289,8 @@ static av_cold int movie_common_init(AVFilterContext *ctx)
snprintf(name, sizeof(name), "out%d", i);
pad.type = movie->st[i].st->codec->codec_type;
pad.name = av_strdup(name);
+ if (!pad.name)
+ return AVERROR(ENOMEM);
pad.config_props = movie_config_output_props;
pad.request_frame = movie_request_frame;
ff_insert_outpad(ctx, i, &pad);