avformat/mvdec: check av_strdup() return value

Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
pull/324/head
Steven Liu 5 years ago
parent 53928e0b49
commit b1071b405d
  1. 2
      libavformat/mvdec.c

@ -211,6 +211,8 @@ static int parse_video_var(AVFormatContext *avctx, AVStream *st,
} else if (!strcmp(name, "ORIENTATION")) {
if (var_read_int(pb, size) == 1101) {
st->codecpar->extradata = av_strdup("BottomUp");
if (!st->codecpar->extradata)
return AVERROR(ENOMEM);
st->codecpar->extradata_size = 9;
}
} else if (!strcmp(name, "Q_SPATIAL") || !strcmp(name, "Q_TEMPORAL")) {

Loading…
Cancel
Save