Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-05-07 11:47:35 +0400
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-05-07 11:47:35 +0400
commit6266c515389a2d77951b204ff21c9eeb67758fdf (patch)
tree9b46c83ef1958ec96aa03a5b7cde308242538637 /libavformat/nutenc.c
parent20e5d64a1a4ce0fed3399f4b09e781c52091e854 (diff)
Simplify condition.
Diffstat (limited to 'libavformat/nutenc.c')
-rw-r--r--libavformat/nutenc.c2
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);