Attempt to ensure we don't decode partial frames.