mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-23 23:46:41 +00:00
lavf/matroskaenc: fix uninitialized read
This commit is contained in:
parent
8e6478b723
commit
be28ce210d
@ -1547,7 +1547,7 @@ static int mkv_write_attachments(AVFormatContext *s)
|
|||||||
|
|
||||||
mkv->attachments = av_mallocz(sizeof(*mkv->attachments));
|
mkv->attachments = av_mallocz(sizeof(*mkv->attachments));
|
||||||
if (!mkv->attachments)
|
if (!mkv->attachments)
|
||||||
return ret;
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
av_lfg_init(&c, av_get_random_seed());
|
av_lfg_init(&c, av_get_random_seed());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user