Correct first next sample calculation

If it's exactly matching a frame size, we need to return a full frame, rather than 0.  Fixes #6967.

-[Unknown]