lavf/matroskaenc: fix uninitialized read

parent 8e6478b7
...@@ -1547,7 +1547,7 @@ static int mkv_write_attachments(AVFormatContext *s) ...@@ -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());
......
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