Commit 848ad8db authored by Paul B Mahol's avatar Paul B Mahol

avformat/libnut: check avformat_new_stream() return value

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent f2e614e7
......@@ -223,6 +223,9 @@ static int nut_read_header(AVFormatContext * avf) {
AVStream * st = avformat_new_stream(avf, NULL);
int j;
if (!st)
return AVERROR(ENOMEM);
for (j = 0; j < s[i].fourcc_len && j < 8; j++) st->codec->codec_tag |= s[i].fourcc[j]<<(j*8);
st->codec->has_b_frames = s[i].decode_delay;
......
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