mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-14 03:04:53 +00:00
nutenc: don't av_malloc(0).
This commit is contained in:
parent
fb22c23715
commit
25588d3b8a
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user