mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
avformat/cinedec: check av_strdup() return value
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
0700e7247b
commit
25f5d67a31
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user