diff options
author | Steven Liu <lq@chinaffmpeg.org> | 2019-10-10 13:47:04 +0800 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2019-10-19 06:54:53 +0200 |
commit | 53928e0b49b9924a41905d20a26b965ecdd9abf5 (patch) | |
tree | dd2fb42d101e2fe70f44a79d88c7cee55a20e4e5 /libavformat/mtv.c | |
parent | f5263172de31a03b3d25b962c36047c904e73670 (diff) | |
download | ffmpeg-53928e0b49b9924a41905d20a26b965ecdd9abf5.tar.gz |
avformat/mtv: check av_strdup() return value
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat/mtv.c')
-rw-r--r-- | libavformat/mtv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mtv.c b/libavformat/mtv.c index 728f4a4781..e731d91077 100644 --- a/libavformat/mtv.c +++ b/libavformat/mtv.c @@ -171,6 +171,8 @@ static int mtv_read_header(AVFormatContext *s) st->codecpar->width = mtv->img_width; st->codecpar->height = mtv->img_height; st->codecpar->extradata = av_strdup("BottomUp"); + if (!st->codecpar->extradata) + return AVERROR(ENOMEM); st->codecpar->extradata_size = 9; // audio - mp3 |