mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
lavfi: check av_strdup() return value
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
3ebd76a9c5
commit
145a84717b
4 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue