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:
parent
f5263172de
commit
53928e0b49
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user