Revision 25588d3b

View differences:

libavformat/nutenc.c
584 584
    nut->avf= s;
585 585

  
586 586
    nut->stream   = av_mallocz(sizeof(StreamContext)*s->nb_streams);
587
    nut->chapter  = av_mallocz(sizeof(ChapterContext)*s->nb_chapters);
587
    if (s->nb_chapters)
588
        nut->chapter  = av_mallocz(sizeof(ChapterContext)*s->nb_chapters);
588 589
    nut->time_base= av_mallocz(sizeof(AVRational   )*(s->nb_streams +
589 590
                                                      s->nb_chapters));
590 591

  

Also available in: Unified diff