Commit 086ed38b authored by conrad's avatar conrad

matroskaenc: Check that tracks was allocated

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23477 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6af31471
......@@ -703,6 +703,8 @@ static int mkv_write_header(AVFormatContext *s)
av_lfg_init(&mkv->lfg, av_get_random_seed());
mkv->tracks = av_mallocz(s->nb_streams * sizeof(*mkv->tracks));
if (!mkv->tracks)
return AVERROR(ENOMEM);
ebml_header = start_ebml_master(pb, EBML_ID_HEADER, 0);
put_ebml_uint (pb, EBML_ID_EBMLVERSION , 1);
......
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