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.
Merge pull request #6971 from unknownbrackets/atrac-minor

Correct first next sample calculation