Commit 25588d3b authored by Ronald S. Bultje's avatar Ronald S. Bultje

nutenc: don't av_malloc(0).

parent fb22c237
......@@ -584,7 +584,8 @@ static int write_header(AVFormatContext *s){
nut->avf= s;
nut->stream = av_mallocz(sizeof(StreamContext)*s->nb_streams);
nut->chapter = av_mallocz(sizeof(ChapterContext)*s->nb_chapters);
if (s->nb_chapters)
nut->chapter = av_mallocz(sizeof(ChapterContext)*s->nb_chapters);
nut->time_base= av_mallocz(sizeof(AVRational )*(s->nb_streams +
s->nb_chapters));
......
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