Merge commit '74383def8f46805faf3391c98516b248108a9a6b'
* commit '74383def8f46805faf3391c98516b248108a9a6b': movenc: Handle pts == NOPTS when autoflushing Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
commit
ee96b7b1c6
@ -4721,7 +4721,10 @@ static int mov_write_single_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
// duration, but only helps for this particular track, not
|
// duration, but only helps for this particular track, not
|
||||||
// for the other ones that are flushed at the same time.
|
// for the other ones that are flushed at the same time.
|
||||||
trk->track_duration = pkt->dts - trk->start_dts;
|
trk->track_duration = pkt->dts - trk->start_dts;
|
||||||
|
if (pkt->pts != AV_NOPTS_VALUE)
|
||||||
trk->end_pts = pkt->pts;
|
trk->end_pts = pkt->pts;
|
||||||
|
else
|
||||||
|
trk->end_pts = pkt->dts;
|
||||||
mov_auto_flush_fragment(s, 0);
|
mov_auto_flush_fragment(s, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user