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