lavf/matroskaenc: fix uninitialized read

This commit is contained in:
Rodger Combs 2016-10-27 01:09:23 -05:00
parent 8e6478b723
commit be28ce210d
No known key found for this signature in database
GPG Key ID: E3E54DCDCD3CB843
1 changed files with 1 additions and 1 deletions

View File

@ -1547,7 +1547,7 @@ static int mkv_write_attachments(AVFormatContext *s)
mkv->attachments = av_mallocz(sizeof(*mkv->attachments));
if (!mkv->attachments)
return ret;
return AVERROR(ENOMEM);
av_lfg_init(&c, av_get_random_seed());