mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 09:52:17 +00:00
lavf/vividas: Do not increase extradata_size after allocation.
Avoids a crash in avcodec_parameters_from_context().
This commit is contained in:
parent
d86f698e38
commit
17aed996bc
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user