1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avformat/mtv: check av_strdup() return value

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
Steven Liu 2019-10-10 13:47:04 +08:00
parent f5263172de
commit 53928e0b49

View File

@ -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