Commit ee96b7b1 authored by Derek Buitenhuis's avatar Derek Buitenhuis

Merge commit '74383def'

* commit '74383def':
  movenc: Handle pts == NOPTS when autoflushing
Merged-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parents a022c1fe 74383def
......@@ -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;
if (pkt->pts != AV_NOPTS_VALUE)
trk->end_pts = pkt->pts;
else
trk->end_pts = pkt->dts;
mov_auto_flush_fragment(s, 0);
}
}
......
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