aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-09-17 23:34:58 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-09-20 00:57:29 +0200
commit2f3a3a7e3270d9c4486fc4d1ed708c2f54338f9c (patch)
treea64357737e7b1f0e1bf2caf986232720a8a062fa
parent5cb70381d99505af00b11721165b63560b95f1cc (diff)
downloadffmpeg-2f3a3a7e3270d9c4486fc4d1ed708c2f54338f9c.tar.gz
lavf/utils: Do not force chapter end time before chapter start.
Fixes ticket #6671.
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 23865c88c4..7abca632b5 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -3167,7 +3167,7 @@ static void compute_chapters_end(AVFormatContext *s)
if (j != i && next_start > ch->start && next_start < end)
end = next_start;
}
- ch->end = (end == INT64_MAX) ? ch->start : end;
+ ch->end = (end == INT64_MAX || end < ch->start) ? ch->start : end;
}
}