mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +00:00
Fix end time of last chapter in compute_chapters_end().
This commit is contained in:
parent
06fd213eb6
commit
a3da17730e
@ -2153,7 +2153,7 @@ enum CodecID av_codec_get_id(const AVCodecTag * const *tags, unsigned int tag)
|
|||||||
static void compute_chapters_end(AVFormatContext *s)
|
static void compute_chapters_end(AVFormatContext *s)
|
||||||
{
|
{
|
||||||
unsigned int i, j;
|
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++)
|
for (i = 0; i < s->nb_chapters; i++)
|
||||||
if (s->chapters[i]->end == AV_NOPTS_VALUE) {
|
if (s->chapters[i]->end == AV_NOPTS_VALUE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user