Revision d06735a3 libavformat/matroskaenc.c

View differences:

libavformat/matroskaenc.c
703 703
    av_lfg_init(&mkv->lfg, av_get_random_seed());
704 704

  
705 705
    mkv->tracks = av_mallocz(s->nb_streams * sizeof(*mkv->tracks));
706
    if (!mkv->tracks)
707
        return AVERROR(ENOMEM);
706 708

  
707 709
    ebml_header = start_ebml_master(pb, EBML_ID_HEADER, 0);
708 710
    put_ebml_uint   (pb, EBML_ID_EBMLVERSION        ,           1);

Also available in: Unified diff