movenc: Only adjust the cts offset at the start of fragments if necessary
authorMartin Storsjö <martin@martin.st>
Sun, 15 Mar 2015 21:40:06 +0000 (23:40 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 19 Mar 2015 08:27:15 +0000 (10:27 +0200)
commiteee13d653953083553cceadbbedf6222ef78a006
treebcc02948890ebe52b0afafa459d4a9daeac04efa
parent5cf892d6946b19a87bcd00d6b76ce81f45960fdb
movenc: Only adjust the cts offset at the start of fragments if necessary

Adjusting it is only necessary when a sidx/tfrf/tfxd atom already has
been written for the previous fragment (since the sidx/tfrf/tfxd atoms
include the duration between the first pts of the previous fragment, to
the first pts of the new fragment).

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