mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 11:49:48 +00:00
lavf/utils: Do not force chapter end time before chapter start.
Fixes ticket #6671.
This commit is contained in:
parent
5cb70381d9
commit
2f3a3a7e32
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user