ffmpeg: Correct inter stream timestamp discontinuities