OpenKinect/libfreenect2 — pull request #72 by hovren (2014-10-15 13:30:36+00:00)
Title: Robust check for arrived color frame.

Previous implementation assumed a full frame was reached if the current transfer is
smaller than 0x4000.
This implementation instead sees if the data footer has arrived by checking the expected
length against the total buffer size, and that the sequence number agrees.
This should be more robust.