summaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-08-25 10:29:50 +0200
committerPaul B Mahol <onemda@gmail.com>2017-08-25 10:29:50 +0200
commit48ddd8ddec3587453dffcfaa4130698d99228937 (patch)
treef93c580e768b899fac03bccbf6797cb0ba9b9724 /libavfilter
parent5e706a2afb09009bad49c4b12aaa997acf4491b1 (diff)
downloadffmpeg-streaming-48ddd8ddec3587453dffcfaa4130698d99228937.zip
ffmpeg-streaming-48ddd8ddec3587453dffcfaa4130698d99228937.tar.gz
avfilter/src_movie: check ff_insert_outpad() for failure
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/src_movie.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index a0dd66e..258ba50 100644
--- a/libavfilter/src_movie.c
+++ b/libavfilter/src_movie.c
@@ -313,7 +313,10 @@ static av_cold int movie_common_init(AVFilterContext *ctx)
return AVERROR(ENOMEM);
pad.config_props = movie_config_output_props;
pad.request_frame = movie_request_frame;
- ff_insert_outpad(ctx, i, &pad);
+ if ((ret = ff_insert_outpad(ctx, i, &pad)) < 0) {
+ av_freep(&pad.name);
+ return ret;
+ }
if ( movie->st[i].st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO &&
!movie->st[i].st->codecpar->channel_layout) {
ret = guess_channel_layout(&movie->st[i], i, ctx);
OpenPOWER on IntegriCloud