Fix #5 issue that sometimes capture frame may spread two frames.
Revert "Fix #5 issue that sometimes capture frame may spread two frames."

This reverts commit 0fc0242a4f1b400a48f7571d49709e13688979a5.
Revert "Revert "Fix #5 issue that sometimes capture frame may spread two frames.""

This reverts commit a045355ab0842bdfdc7f5b24b17ad88192e65c95.