Commit 17aed996 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/vividas: Do not increase extradata_size after allocation.

Avoids a crash in avcodec_parameters_from_context().
parent d86f698e
......@@ -392,7 +392,8 @@ static void track_header(VividasDemuxContext *viv, AVFormatContext *s, uint8_t
offset += data_len[j];
}
st->codecpar->extradata_size = offset;
if (offset < st->codecpar->extradata_size)
st->codecpar->extradata_size = offset;
}
}
......
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