diff options
author | John Stebbins <stebbins@jetheaddev.com> | 2011-05-25 09:43:55 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-05-25 09:49:18 +0200 |
commit | a3da17730e5704555d62a7eb32c1f988f8efed66 (patch) | |
tree | 2840f8998e44275a728ec595ac4cf7fb73edfada /libavformat/utils.c | |
parent | 06fd213eb608c23f58e290cfad6262b94e30fc74 (diff) | |
download | ffmpeg-a3da17730e5704555d62a7eb32c1f988f8efed66.tar.gz |
Fix end time of last chapter in compute_chapters_end().
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 52d8a2dc16..20b21f29db 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) { |