|
|
@ -584,6 +584,7 @@ static int write_header(AVFormatContext *s){ |
|
|
|
nut->avf= s; |
|
|
|
nut->avf= s; |
|
|
|
|
|
|
|
|
|
|
|
nut->stream = av_mallocz(sizeof(StreamContext)*s->nb_streams); |
|
|
|
nut->stream = av_mallocz(sizeof(StreamContext)*s->nb_streams); |
|
|
|
|
|
|
|
if (s->nb_chapters) |
|
|
|
nut->chapter = av_mallocz(sizeof(ChapterContext)*s->nb_chapters); |
|
|
|
nut->chapter = av_mallocz(sizeof(ChapterContext)*s->nb_chapters); |
|
|
|
nut->time_base= av_mallocz(sizeof(AVRational )*(s->nb_streams + |
|
|
|
nut->time_base= av_mallocz(sizeof(AVRational )*(s->nb_streams + |
|
|
|
s->nb_chapters)); |
|
|
|
s->nb_chapters)); |
|
|
|