Crash fixed: when some packets lost, sample_time are not consistent. Now buffer are padding automatically.