From 6266c515389a2d77951b204ff21c9eeb67758fdf Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Sat, 7 May 2011 09:47:35 +0200 Subject: Simplify condition. --- libavformat/nutenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/nutenc.c') 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); -- cgit v1.2.3