]> git.sesse.net Git - ffmpeg/commit
movenc: Add an option for enabling negative CTS offsets
authorMartin Storsjö <martin@martin.st>
Thu, 7 Apr 2016 12:45:37 +0000 (15:45 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 15 May 2017 11:08:36 +0000 (14:08 +0300)
commitc380a0d7f7a2c7411aae60463e25d916541f0388
treef64ea2855451cd59b028a2473bd7e433f2be8265
parentd05c9cde0e87c23ca42957646bea483dfc09d6bf
movenc: Add an option for enabling negative CTS offsets

This reduces the need for an edit list; streams that start with
e.g. dts=-1, pts=0 can be encoded as dts=0, pts=0 (which is valid
in mov/mp4) by shifting the dts values of all packets forward.
This avoids the need for edit lists for such streams (while they
still are needed for audio streams with encoder delay).

This eases conformance with the DASH-IF interoperability guidelines.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/movenc.c
libavformat/movenc.h