[FFmpeg-cvslog] avfilter/src_movie: check ff_insert_outpad() for failure
Paul B Mahol
git at videolan.org
Fri Aug 25 11:36:13 EEST 2017
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Aug 25 10:29:50 2017 +0200| [48ddd8ddec3587453dffcfaa4130698d99228937] | committer: Paul B Mahol
avfilter/src_movie: check ff_insert_outpad() for failure
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=48ddd8ddec3587453dffcfaa4130698d99228937
---
libavfilter/src_movie.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index a0dd66ea76..258ba504a5 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);
More information about the ffmpeg-cvslog
mailing list