You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-14 22:15:12 +02:00
lavf/matroskaenc: fix uninitialized read
This commit is contained in:
@ -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());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user