[FFmpeg-cvslog] Fix end time of last chapter in compute_chapters_end

John Stebbins git at videolan.org
Thu May 26 03:32:24 CEST 2011


ffmpeg | branch: master | John Stebbins <stebbins at jetheaddev.com> | Mon May 23 14:26:54 2011 -0700| [656566d7a4fef9680e483f1015d4cc242d825202] | committer: Anton Khirnov

Fix end time of last chapter in compute_chapters_end

Parenthesis are misplaced in calculation of max_time.

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=656566d7a4fef9680e483f1015d4cc242d825202
---

 libavformat/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index ad22601..8cdd8b3 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2110,7 +2110,7 @@ enum CodecID av_codec_get_id(const AVCodecTag * const *tags, unsigned int tag)
 static void compute_chapters_end(AVFormatContext *s)
 {
     unsigned int i, j;
-    int64_t max_time = s->duration + (s->start_time == AV_NOPTS_VALUE) ? 0 : s->start_time;
+    int64_t max_time = s->duration + ((s->start_time == AV_NOPTS_VALUE) ? 0 : s->start_time);
 
     for (i = 0; i < s->nb_chapters; i++)
         if (s->chapters[i]->end == AV_NOPTS_VALUE) {



More information about the ffmpeg-cvslog mailing list