Revision 6266c515 libavformat/nutenc.c

View differences:

libavformat/nutenc.c
589 589
    nut->chapter  = av_mallocz(sizeof(ChapterContext)*s->nb_chapters);
590 590
    nut->time_base= av_mallocz(sizeof(AVRational   )*(s->nb_streams +
591 591
                                                      s->nb_chapters));
592
    if (!nut->stream || (s->nb_chapters && !nut->chapter) || !nut->time_base) {
592
    if (!nut->stream || !nut->chapter || !nut->time_base) {
593 593
        av_freep(&nut->stream);
594 594
        av_freep(&nut->chapter);
595 595
        av_freep(&nut->time_base);

Also available in: Unified diff