diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-05-07 09:47:35 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-05-07 09:47:35 +0200 |
commit | 6266c515389a2d77951b204ff21c9eeb67758fdf (patch) | |
tree | 9b46c83ef1958ec96aa03a5b7cde308242538637 /libavformat/nutenc.c | |
parent | 20e5d64a1a4ce0fed3399f4b09e781c52091e854 (diff) | |
download | ffmpeg-6266c515389a2d77951b204ff21c9eeb67758fdf.tar.gz |
Simplify condition.
Diffstat (limited to 'libavformat/nutenc.c')
-rw-r--r-- | libavformat/nutenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index b5c5c7e532..4756ca2a1a 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -589,7 +589,7 @@ static int write_header(AVFormatContext *s){ nut->chapter = av_mallocz(sizeof(ChapterContext)*s->nb_chapters); nut->time_base= av_mallocz(sizeof(AVRational )*(s->nb_streams + s->nb_chapters)); - if (!nut->stream || (s->nb_chapters && !nut->chapter) || !nut->time_base) { + if (!nut->stream || !nut->chapter || !nut->time_base) { av_freep(&nut->stream); av_freep(&nut->chapter); av_freep(&nut->time_base); |