[FFmpeg-cvslog] Fix end time of last chapter in compute_chapters_end().
John Stebbins
git at videolan.org
Wed May 25 09:50:19 CEST 2011
ffmpeg | branch: master | John Stebbins <stebbins at jetheaddev.com> | Wed May 25 09:43:55 2011 +0200| [a3da17730e5704555d62a7eb32c1f988f8efed66] | committer: Carl Eugen Hoyos
Fix end time of last chapter in compute_chapters_end().
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a3da17730e5704555d62a7eb32c1f988f8efed66
---
libavformat/utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 52d8a2d..20b21f2 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2153,7 +2153,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