Commit 25f5d67a authored by Steven Liu's avatar Steven Liu

avformat/cinedec: check av_strdup() return value

Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent 0700e724
......@@ -168,6 +168,10 @@ static int cine_read_header(AVFormatContext *avctx)
avio_skip(pb, 616); // Binning .. bFlipH
if (!avio_rl32(pb) ^ vflip) {
st->codecpar->extradata = av_strdup("BottomUp");
if (!st->codecpar->extradata) {
st->codecpar->extradata_size = 0;
return AVERROR(ENOMEM);
}
st->codecpar->extradata_size = 9;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment