Commit 656566d7 authored by John Stebbins's avatar John Stebbins Committed by Anton Khirnov
Browse files

Fix end time of last chapter in compute_chapters_end



Parenthesis are misplaced in calculation of max_time.
Signed-off-by: default avatarAnton Khirnov <anton@khirnov.net>
parent 2cf8355f
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment