movenc: Make sure the RTP hint tracks have nondecreasing DTS
authorMartin Storsjö <martin@martin.st>
Sun, 7 Jul 2013 13:55:26 +0000 (16:55 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 8 Jul 2013 09:43:42 +0000 (12:43 +0300)
commita87a0acf9b5d27aad032e61eef4973e62a4a6830
treeba9f6b0f8f8f16ae89e5e5f5b5672ba0e6629ba3
parent744a11c996641888d477a3981d609e79eeb69ea9
movenc: Make sure the RTP hint tracks have nondecreasing DTS

The RTP timestamps can be decreasing for codecs with B-frames. For
these cases, make sure the timestamps in the MP4 file track itself
are nondecreasing, and add an offset to the RTP packet hint instead
to produce the intended RTP timestamp.

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