mirror of https://github.com/FFmpeg/FFmpeg.git
By writing a zero-sized packet, the caller can communicate the start_dts/start_cts for the stream without actually writing the first packet. This allows doing random-access writing of fragments when the start dts of the stream isn't zero, so that the edit list in the moov is written based on timestamps from the nominal start time signaled via the zero-sized packet, while the first proper packet written corresponds to a later fragment. To avoid potential unexpected behaviour, empty packets only set start_dts if the frag_discont flag is set. Signed-off-by: Martin Storsjö <martin@martin.st>pull/160/head
parent
3eeb7edfc2
commit
bef3b1f59f
1 changed files with 12 additions and 3 deletions
Loading…
Reference in new issue